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

Method forward

tests/unit/runtime/zero/test_zeropp.py:34–37  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

32 self.cross_entropy_loss = nn.CrossEntropyLoss()
33
34 def forward(self, x, y):
35 for layer in self.layers:
36 x = layer(x)
37 return self.cross_entropy_loss(x, y)
38
39
40def test_zero_hpz_partition_size_config():

Calls

no outgoing calls

Tested by

no test coverage detected