Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _
Function
_
imperative/python/test/unit/core/test_autodiff.py:195–199 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
193
194
@check
195
def
_():
196
with
Grad()
as
g:
197
g.wrt(x)
198
y = x * x
199
g(y, dy)
200
201
@check
202
def
_():
Callers
7
GradKeyWrapper
Class · 0.85
TraceKeyWrapper
Class · 0.85
TensorWrapper
Class · 0.85
type_caster<mgb::imperative::OpDef>
Class · 0.85
prof_impl
Method · 0.85
get_workspace_size_bytes
Method · 0.85
construct_fake_preprocess_filter
Method · 0.85
Calls
3
Grad
Class · 0.90
wrt
Method · 0.80
g
Function · 0.50
Tested by
no test coverage detected