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

Method forward

tests/unit/simple_model.py:163–168  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

161 self.cross_entropy_loss = torch.nn.CrossEntropyLoss()
162
163 def forward(self, x, y):
164 x = self.input_layer(x)
165 for layer in self.layers:
166 x = layer(x)
167 x = self.output_layer(x)
168 return x
169
170
171class LinearStackPipe(PipelineModule):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected