MCPcopy Create free account
hub / github.com/OpenGVLab/EfficientQAT / forward

Method forward

quantize/quantizer.py:77–82  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

75
76
77 def forward(self, x: torch.Tensor):
78 if self.n_bits >= 16 or not self.enable:
79 return x
80
81 x_dequant = self.fake_quant(x)
82 return x_dequant
83
84
85

Callers

nothing calls this directly

Calls 1

fake_quantMethod · 0.95

Tested by

no test coverage detected