MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / update

Method update

imperative/python/megengine/quantization/utils.py:88–90  ·  view source on GitHub ↗
(self, qparams: "QParams")

Source from the content-addressed store, hash-verified

86 self.zero_point = zero_point
87
88 def update(self, qparams: "QParams"):
89 for key in self.__slots__:
90 setattr(self, key, getattr(qparams, key))
91
92 def __eq__(self, other):
93 if len(self.__slots__) != len(other.__slots__):

Callers 3

fake_quant_biasFunction · 0.45
quantizeFunction · 0.45
quantize_qatFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected