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

Method forward

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

Source from the content-addressed store, hash-verified

726 self.weight = weight
727
728 def forward(self, x: Tensor) -> Tensor:
729 _assert_fully_available(self)
730 result = self.weight * x
731
732 return result
733
734
735class EltwiseMultiplicationTestNetwork_Dict(Module):

Callers

nothing calls this directly

Calls 1

_assert_fully_availableFunction · 0.85

Tested by

no test coverage detected