MCPcopy Create free account
hub / github.com/XiaoMi/mace / quantize_large_weights

Method quantize_large_weights

tools/python/transform/transformer.py:2143–2149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2141 self._quantized_tensor.update([tensor.name])
2142
2143 def quantize_large_weights(self):
2144 print("Quantize large weights")
2145 net = self._model
2146 for tensor in net.tensors:
2147 self.quantize_large_tensor(tensor)
2148
2149 return False
2150
2151 def add_quantize_info(self, op, minval, maxval):
2152 quantize_schema = self._option.quantize_schema

Callers

nothing calls this directly

Calls 1

quantize_large_tensorMethod · 0.95

Tested by

no test coverage detected