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

Method quantize_weights

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

Source from the content-addressed store, hash-verified

2111 return False
2112
2113 def quantize_weights(self):
2114 print("Quantize weights")
2115 net = self._model
2116 for tensor in net.tensors:
2117 self.quantize_tensor(tensor)
2118
2119 return False
2120
2121 def quantize_large_tensor(self, tensor):
2122 if tensor.data_type == mace_pb2.DT_FLOAT:

Callers

nothing calls this directly

Calls 1

quantize_tensorMethod · 0.95

Tested by

no test coverage detected