tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] Robeast opened a new issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
Date Wed, 25 Mar 2020 11:07:54 GMT
Robeast opened a new issue #5145:  [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145
 
 
   Dear community,
   I've noticed that the [stock tutorial for quantization](https://github.com/apache/incubator-tvm/blob/master/tutorials/frontend/deploy_quantized.py)
fails if the following call is changed from local scales to global scales:
   
   ```
   ...
   mod = quantize(mod, params, data_aware=True) # -> fails with data_aware=False 
   ...
   
   ValueError: Unknown calibrate mode global
   ```
   
   The fix is straight forward:
   
   ```
   -         with relay.quantize.qconfig(calibrate_mode='global', global_scale=8.0):
   ---
   +        with relay.quantize.qconfig(calibrate_mode='global_scale', global_scale=8.0):
   ```
   
   I would like to kindly ask @vinx13 to update the tutorial. Thank you very much in advance
& best regards!
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message