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

Method forward

tests/small_model_debugging/test_model.py:26–30  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

24 self.cross_entropy_loss = torch.nn.CrossEntropyLoss()
25
26 def forward(self, x, y):
27 hidden = x
28 hidden1 = self.linear(hidden)
29 hidden2 = self.linear(hidden1)
30 return self.cross_entropy_loss(hidden2, y)
31
32
33def create_config_from_dict(tmpdir, config_dict):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected