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

Method forward

tests/unit/v1/zero/test_zero.py:853–857  ·  view source on GitHub ↗
(self, x: Tensor)

Source from the content-addressed store, hash-verified

851 self.weight = weight
852
853 def forward(self, x: Tensor) -> Tensor:
854 _assert_fully_available(self)
855 result = self.weight * x
856
857 return result
858
859
860class EltwiseMultiplicationTestNetwork_Dict(Module):

Callers

nothing calls this directly

Calls 1

_assert_fully_availableFunction · 0.85

Tested by

no test coverage detected