ibsidorenko commented on code in PR #12398:
URL: https://github.com/apache/tvm/pull/12398#discussion_r997410823


##########
src/relay/backend/te_compiler_cache.cc:
##########
@@ -213,6 +288,8 @@ class LowerToTECompute : public 
backend::MemoizedExprTranslator<Array<te::Tensor
     static auto flower_call = 
tvm::runtime::Registry::Get("relay.backend.lower_call");
     ICHECK(flower_call) << "relay.backend.lower_call is not registered.";
 
+    if (target_->GetTargetDeviceType() == kDLHexagon) 
pattern_matcher_.Register(call_node);

Review Comment:
   Yes, we can remove this check. Done.



##########
src/relay/backend/te_compiler_cache.cc:
##########
@@ -123,6 +123,81 @@ Array<IndexExpr> GetShape(const Array<IndexExpr>& shape) {
   return res;
 }
 
+// Helper class that is used during lowering to TE.
+// It matches sequence of Ops and lower them into single TOPI operation. Has 
sense for Hexagon only.

Review Comment:
   Done



-- 
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]

Reply via email to