ashutosh-arm commented on a change in pull request #10548:
URL: https://github.com/apache/tvm/pull/10548#discussion_r823966849
##########
File path: src/relay/backend/contrib/cmsisnn/relay_to_tir.cc
##########
@@ -548,7 +560,21 @@ class RelayToTIRVisitor : public MixedModeMutator {
}
void EmitAdd(const GlobalVar& global_var, const Expr& expr) {
- auto* add_call = expr.as<CallNode>();
+ const CallNode* clip_call = nullptr;
+ const CallNode* add_call = nullptr;
+ const CallNode* final_call = expr.as<CallNode>();
+ const OpNode* final_op = final_call->op.as<OpNode>();
+ int32_t output_min = std::numeric_limits<int8_t>::min();
+ int32_t output_max = std::numeric_limits<int8_t>::max();
+ if (final_op->name == "clip") {
Review comment:
Done. Thanks @manupa-arm. That was indeed needed.
--
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]