Icemist commented on a change in pull request #10239:
URL: https://github.com/apache/tvm/pull/10239#discussion_r808577157
##########
File path: src/relay/transforms/fake_quantization_to_integer.cc
##########
@@ -270,8 +293,233 @@ class FakeQuantizationRewriter : public MixedModeMutator {
const bool hard_fail_;
};
+bool is_op_enabled_for_optional_fq2i(const CallNode* call_node) {
+ const Op op = Downcast<Op>(call_node->op);
+ static auto fqfq =
Op::GetAttrMap<FTVMFakeQuantizationToInteger>("FTVMFakeQuantizationToInteger");
+ static std::unordered_set<Op, tvm::ObjectHash, tvm::ObjectEqual> ops = {
+ Op::Get("reshape"),
Review comment:
I applied the alphabetical order. Originally they were grouped by groups
or pairs.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]