MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / backward

Method backward

quantization/quantizer.py:20–22  ·  view source on GitHub ↗
(self, grad_output)

Source from the content-addressed store, hash-verified

18
19 @staticmethod
20 def backward(self, grad_output):
21 grad_input = grad_output.clone()
22 return grad_input
23
24# core quantization method (simulated quantization)
25def pseudo_quantize_tensor(w, n_bit=8,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected