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

Method exit

imperative/python/src/grad.cpp:124–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void GradKeyWrapper::exit() {
125 m_transformation_guard.reset();
126 grad_key_map.erase(m_key);
127 m_key = {};
128 m_transformation.reset();
129}
130
131void GradKeyWrapper::suppress() {
132 m_transformation->suppress();

Callers 8

_exitFunction · 0.45
__exit__Method · 0.45
trace_normalMethod · 0.45
trace_without_hostMethod · 0.45
exit_traceFunction · 0.45
resnet50_mgb.pyFile · 0.45

Calls 2

resetMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected