MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / dtype

Method dtype

imperative/python/megengine/tensor.py:123–128  ·  view source on GitHub ↗

r"""Returns a :class:`numpy.dtype` object represents the data type of a :class:`~.Tensor`. .. seealso:: see :ref:`tensor-dtype` for more details.

(self)

Source from the content-addressed store, hash-verified

121
122 @property
123 def dtype(self) -> np.dtype:
124 r"""Returns a :class:`numpy.dtype` object represents the data type of a :class:`~.Tensor`.
125
126 .. seealso:: see :ref:`tensor-dtype` for more details.
127 """
128 return super().dtype
129
130 @property
131 def format(self) -> str:

Callers 1

__repr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected