comaniac commented on a change in pull request #5320: [BYOC] Prevent duplicate 
outputs in subgraph Tuple
URL: https://github.com/apache/incubator-tvm/pull/5320#discussion_r407700115
 
 

 ##########
 File path: src/relay/transforms/partition_graph.cc
 ##########
 @@ -445,7 +448,7 @@ class Partitioner : public ExprMutator {
   int GetRetIdx(AnnotatedRegion sg, const Expr& arg) {
     int idx = 0;
     for (auto arg_ : sg->GetOutputs()) {
-      if (arg == arg_) {
+      if (Downcast<Call>(arg)->args[0] == Downcast<Call>(arg_)->args[0]) {
 
 Review comment:
   Move `Downcast<Call>(arg)->args[0]` out of the loop.

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


With regards,
Apache Git Services

Reply via email to