Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ forward
Method
forward
tests/lightning/test_simple.py:31–32 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
29
self.layer = torch.nn.Linear(32, 2)
30
31
def
forward(self, x):
32
return
self.layer(x)
33
34
def
training_step(self, batch, batch_idx):
35
loss = self(batch).sum()
Callers
nothing calls this directly
Calls
1
layer
Method · 0.80
Tested by
no test coverage detected