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

Method numpy

imperative/python/megengine/tensor.py:153–155  ·  view source on GitHub ↗

r"""Returns self :class:`~.Tensor` as a :class:`numpy.ndarray`.

(self)

Source from the content-addressed store, hash-verified

151 return self._qparams
152
153 def numpy(self) -> np.ndarray:
154 r"""Returns self :class:`~.Tensor` as a :class:`numpy.ndarray`."""
155 return super().numpy()
156
157 def detach(self):
158 r"""Returns a new :class:`~.Tensor`, detached from the current graph."""

Callers 3

__repr__Method · 0.95
__getnewargs__Method · 0.95
convert_tensor_formatFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected