You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/03/25 11:07:54 UTC
[GitHub] [incubator-tvm] Robeast opened a new issue #5145: [BUG][TUTORIAL]
Tutorial for quantization need update
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
[GitHub] [incubator-tvm] tqchen commented on issue #5145: [BUG][TUTORIAL]
Tutorial for quantization need update
Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145#issuecomment-604050409
no problem, thanks @Robeast for reporting the problem :)
----------------------------------------------------------------
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
[GitHub] [incubator-tvm] vinx13 closed issue #5145: [BUG][TUTORIAL] Tutorial
for quantization need update
Posted by GitBox <gi...@apache.org>.
vinx13 closed issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145
----------------------------------------------------------------
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
[GitHub] [incubator-tvm] Robeast commented on issue #5145: [BUG][TUTORIAL]
Tutorial for quantization need update
Posted by GitBox <gi...@apache.org>.
Robeast commented on issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145#issuecomment-604048230
@tqchen I'm extremely ashamed to say this, but due to company policy I'm not allowed to contribute to anything other than company code bases. Especially shameful since it's only 1 string change... :( I'm really sorry.
----------------------------------------------------------------
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
[GitHub] [incubator-tvm] Robeast commented on issue #5145: [BUG][TUTORIAL]
Tutorial for quantization need update
Posted by GitBox <gi...@apache.org>.
Robeast commented on issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145#issuecomment-604081129
Thank you for your understanding... And thank you very much for @vinx13 for fixing!
----------------------------------------------------------------
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
[GitHub] [incubator-tvm] tqchen commented on issue #5145: [BUG][TUTORIAL]
Tutorial for quantization need update
Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #5145: [BUG][TUTORIAL] Tutorial for quantization need update
URL: https://github.com/apache/incubator-tvm/issues/5145#issuecomment-603892205
feel free to send a PR to fix this
----------------------------------------------------------------
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