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

Method __init__

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

Source from the content-addressed store, hash-verified

847class EltwiseMultiplicationModule(Module):
848
849 def __init__(self, weight: Parameter) -> None:
850 super().__init__()
851 self.weight = weight
852
853 def forward(self, x: Tensor) -> Tensor:
854 _assert_fully_available(self)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected