mygrad.Tensor.dtype#
- property Tensor.dtype: dtype#
Data-type of the tensor’s elements.
- Returns:
- numpy dtype object
Examples
>>> import mygrad as mg >>> x = mg.Tensor([[0, 1], ... [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>