MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / forward

Method forward

tests/unit/runtime/zero/test_zero_offloadpp.py:25–28  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

23 self.cross_entropy_loss = nn.CrossEntropyLoss()
24
25 def forward(self, x, y):
26 for layer in self.layers:
27 x = layer(x)
28 return self.cross_entropy_loss(x, y)
29
30
31def test_zero_partial_offload_config():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected