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

Function g

imperative/python/megengine/core/tensor/array_method.py:193–198  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

191
192def _inplace(f):
193 def g(self, value):
194 result = f(self, value)
195 if result is NotImplemented:
196 raise NotImplementedError
197 self._reset(result)
198 return self
199
200 return g
201

Callers

nothing calls this directly

Calls 2

fFunction · 0.70
_resetMethod · 0.45

Tested by

no test coverage detected