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

Method detach

imperative/python/megengine/tensor.py:157–159  ·  view source on GitHub ↗

r"""Returns a new :class:`~.Tensor`, detached from the current graph.

(self)

Source from the content-addressed store, hash-verified

155 return super().numpy()
156
157 def detach(self):
158 r"""Returns a new :class:`~.Tensor`, detached from the current graph."""
159 return super().detach()
160
161 def _reset(self, other):
162 if not isinstance(other, _Tensor):

Callers 15

forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
get_qparamsMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
decorated_funcFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected