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

Method __init__

tests/unit/v1/zero/test_zero.py:724–726  ·  view source on GitHub ↗
(self, weight: Parameter)

Source from the content-addressed store, hash-verified

722class EltwiseMultiplicationModule(Module):
723
724 def __init__(self, weight: Parameter) -> None:
725 super().__init__()
726 self.weight = weight
727
728 def forward(self, x: Tensor) -> Tensor:
729 _assert_fully_available(self)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected