Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ forward
Method
forward
torch/testing/_internal/common_fsdp.py:397–398 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
395
return
(torch.rand(4, 8, device=device),)
396
397
def
forward(self, x):
398
return
self.module(x)
399
400
def
get_loss(self, input, output):
401
loss = output.sum()
Callers
nothing calls this directly
Calls
1
module
Method · 0.45
Tested by
no test coverage detected