@@ -29,29 +29,42 @@ MACE supports post-training quantization if you want to take a chance to quantiz
...
@@ -29,29 +29,42 @@ MACE supports post-training quantization if you want to take a chance to quantiz
This method requires developer to calculate tensor range of each activation layer statistically using sample inputs.
This method requires developer to calculate tensor range of each activation layer statistically using sample inputs.
MACE provides tools to do statistics with following steps:
MACE provides tools to do statistics with following steps:
1. Convert original model to run on CPU host without obfuscation (by setting `target_abis` to `host`, `runtime` to `cpu`, and `obfuscate` to `0`, appending `:0` to `output_tensors` if missing in yaml config).
1. Convert original model to run on CPU host without obfuscation (by setting `target_abis` to `host`, `runtime` to `cpu`,
E.g.,
and `obfuscate` to `0`, appending `:0` to `output_tensors` if missing in yaml config). E.g.,