Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
backward
Method · 0.80
unpack_hook
Method · 0.80
backward
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
step
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected