This is an archive of the discontinued LLVM Phabricator instance.

[mlir][quant] output spec verification check for quant.region
ClosedPublic

Authored by Lewuathe on Jun 21 2022, 12:17 AM.

Details

Summary

We can have validation test for quant.region having incompatible output spec.

Diff Detail

Event Timeline

Lewuathe created this revision.Jun 21 2022, 12:17 AM
Lewuathe requested review of this revision.Jun 21 2022, 12:17 AM
stellaraccident accepted this revision.Jun 23 2022, 5:15 PM
stellaraccident added inline comments.
mlir/test/Dialect/Quant/quant_region.mlir
73

Hi - thank you for the patch.

Just so you know, we are having a discussion about possibly removing this op: https://discourse.llvm.org/t/rfc-removing-the-ops-from-the-quant-dialect/3643

To our knowledge it has no live uses, so if you are using it, please speak up on that thread.

This revision is now accepted and ready to land.Jun 23 2022, 5:15 PM

@stellaraccident Thank you for letting me know. For now, we are not using the quant dialect for real usage. Just looking at the dialect as an option to achieve and ease the quantization logic for our deployment. So basically, I'm on the same page on the direction they are discussing.