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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected