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

Method forward

deepspeed/linear/quantization.py:146–147  ·  view source on GitHub ↗
(self, input: torch.Tensor)

Source from the content-addressed store, hash-verified

144 self.weight = QuantizedParameter(self.weight.data, quantization_config=quantization_config)
145
146 def forward(self, input: torch.Tensor) -> torch.Tensor:
147 return F.linear(input, self.weight.dequantized(), self.bias)

Callers

nothing calls this directly

Calls 1

dequantizedMethod · 0.80

Tested by

no test coverage detected