Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _inplace
Function
_inplace
imperative/python/megengine/core/tensor/array_method.py:192–200 ·
view source on GitHub ↗
(f)
Source
from the content-addressed store, hash-verified
190
191
192
def
_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
202
203
def
_todo(*_):
Callers
1
ArrayMethodMixin
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected