You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by JoeyChou via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/09/17 19:22:28 UTC

[Apache TVM Discuss] [Questions] [QNN] How to decompose qnn.requantize into relay-only operators


In the [Deploy a Framework-prequantized Model with TVM - Part 3 (TFLite)](https://tvm.apache.org/docs/tutorials/frontend/deploy_prequantized_tflite.html?fbclid=IwAR0n6dzzKCFqzYFEKcOrd9dCCFiCkUP5lpkwPwKkUyxwH-PEEIcxk3vaffQ#deploy-a-framework-prequantized-model-with-tvm-part-3-tflite) example, I can get `qnn.requantize` in the graph. However, I don't know how to QNN passes to decompose the `qnn.requantize`. Is there an example for that?





---
[Visit Topic](https://discuss.tvm.apache.org/t/qnn-how-to-decompose-qnn-requantize-into-relay-only-operators/7941/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/64ee34036c85bab4f07c88e940e21c33f0ec5174924699e0dbccc72430f4137b).

[Apache TVM Discuss] [Questions] [QNN] How to decompose qnn.requantize into relay-only operators

Posted by JoeyChou via Apache TVM Discuss <no...@discuss.tvm.ai>.

Thank you @comaniac @anijain2305 it works.





---
[Visit Topic](https://discuss.tvm.apache.org/t/qnn-how-to-decompose-qnn-requantize-into-relay-only-operators/7941/4) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/52bfeb75aa5934632657b734f4bbebbf870bc08ac9914b5f7dd3ff25fdb6a8be).

[Apache TVM Discuss] [Questions] [QNN] How to decompose qnn.requantize into relay-only operators

Posted by "Cody H. Yu via Apache TVM Discuss" <no...@discuss.tvm.ai>.

@anijain2305 could you help on this question?





---
[Visit Topic](https://discuss.tvm.apache.org/t/qnn-how-to-decompose-qnn-requantize-into-relay-only-operators/7941/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/f440f51624293f87de12b8ed0e26cca90c140245a80317bff637eafffc95c8c4).

[Apache TVM Discuss] [Questions] [QNN] How to decompose qnn.requantize into relay-only operators

Posted by Animesh Jain via Apache TVM Discuss <no...@discuss.tvm.ai>.

If you are in python, you can just try

`mod = relay.qnn.transform.CanonicalizeOps()(mod)`

https://github.com/apache/incubator-tvm/blob/74254c374ac49be64ea440f7abdeb9f5a91273a4/tests/python/relay/test_op_qnn_add.py#L39-L42





---
[Visit Topic](https://discuss.tvm.apache.org/t/qnn-how-to-decompose-qnn-requantize-into-relay-only-operators/7941/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/bec3e8bba64e20fecdb25d205e0145f14909a911b4cb681641e695d5aa66ee6b).