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

Method round_pass

quantization/quantizer.py:238–242  ·  view source on GitHub ↗
(self, q_pos, q_neg, dev)

Source from the content-addressed store, hash-verified

236 return q_pos, q_neg
237
238 def round_pass(self, q_pos, q_neg, dev):
239 y_grad_pos, y_grad_neg = q_pos, q_neg
240 y_pos, y_neg = self.round_n2f3(q_pos, q_neg, dev)
241
242 return (y_pos - y_grad_pos).detach() + y_grad_pos, (y_neg - y_grad_neg).detach() + y_grad_neg
243

Callers 1

forwardMethod · 0.95

Calls 1

round_n2f3Method · 0.95

Tested by

no test coverage detected