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

Method forward

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_assert_fully_availableFunction · 0.85

Tested by

no test coverage detected