MCPcopy Create free account
hub / github.com/pytorch/pytorch / enable_grad

Method enable_grad

test/test_jit.py:3253–3254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3251
3252 @torch.jit.ignore
3253 def enable_grad():
3254 torch.set_grad_enabled(True)
3255
3256 @torch.jit.script
3257 def foo(x):

Callers 15

backwardMethod · 0.80
unpack_hookMethod · 0.80
backwardMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected