masahi commented on a change in pull request #7474:
URL: https://github.com/apache/tvm/pull/7474#discussion_r578915649
##########
File path: src/relay/qnn/op/quantize.cc
##########
@@ -46,19 +47,22 @@ bool QuantizeRel(const Array<Type>& types, int num_inputs,
const Attrs& attrs,
}
const auto input_dtype = data->dtype;
- ICHECK(input_dtype == DataType::Float(32))
- << "Input type should be one of float32 but was " << input_dtype;
+ ICHECK(input_dtype == DataType::Float(32) || input_dtype ==
DataType::Int(32))
Review comment:
I have no idea why the input to quantize could be int32.
----------------------------------------------------------------
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:
[email protected]