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

Method forward

deepspeed/runtime/zero/linear.py:227–228  ·  view source on GitHub ↗
(self, input: Tensor)

Source from the content-addressed store, hash-verified

225 init.uniform_(self.bias, -bound, bound)
226
227 def forward(self, input: Tensor) -> Tensor:
228 return LinearFunctionForZeroStage3.apply(input, self.weight, self.bias)
229
230 def extra_repr(self) -> str:
231 return 'in_features={}, out_features={}, bias={}'.format(self.in_features, self.out_features, self.bias

Callers

nothing calls this directly

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected