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

Method forward

tests/torch_compile/test_compile.py:47–49  ·  view source on GitHub ↗
(self, data, residual)

Source from the content-addressed store, hash-verified

45 self.dropout = torch.nn.Dropout(0.5)
46
47 def forward(self, data, residual):
48 output = residual + self.fc1(self.fc0(self.dropout(data))) * 0.5
49 return output
50
51
52model = MyModule()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected