Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ fn
Method
fn
test/distributed/test_data_parallel.py:47–48 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
45
inp = torch.randn(2, 100, device=
'cuda'
, dtype=torch.double)
46
47
def
fn(t):
48
return
dpm(inp)
49
50
gradcheck(fn, (m.t_rg,))
51
Callers
nothing calls this directly
Calls
3
sin
Method · 0.45
cos
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected