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

Method forward

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

Source from the content-addressed store, hash-verified

219 init.uniform_(self.bias, -bound, bound)
220
221 def forward(self, input: Tensor) -> Tensor:
222 return LinearFunctionForZeroStage3.apply(input, self.weight, self.bias)
223
224 def extra_repr(self) -> str:
225 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