gayatripk1 commented on code in PR #11142:
URL: https://github.com/apache/tvm/pull/11142#discussion_r862986680
##########
src/relay/transforms/to_mixed_precision.cc:
##########
@@ -381,6 +400,11 @@ class MixedPrecisionPass : public MixedModeMutator {
if (accumulation_dtype != output_dtype) {
output = CastArg(output, GetType(output), output_dtype);
}
+ if (pre_call_node == static_cast<const CallNode*>(root_) &&
enable_original_type_) {
Review Comment:
changing to same_as will require us to use "if
(((GetRef<Call>(pre_call_node)).same_as(GetRef<RelayExpr>(root_))) &&
keep_orig_output_dtype_ )". So leaving the comparison as such
--
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]