We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe8279 commit c49b045Copy full SHA for c49b045
src/relay/pass/fuse_ops.cc
@@ -823,6 +823,16 @@ class FuseMutator : private ExprMutator {
823
if (new_fields[i].as<VarNode>()) {
824
auto copy = Copy(new_fields[i]);
825
new_fields.Set(i, copy);
826
+ } else if (new_fields[i].as<CallNode>()) {
827
+ size_t j = 0;
828
+ while (j < i) {
829
+ if (new_fields[j] == new_fields[i]) break;
830
+ j++;
831
+ }
832
+ if (j != i) {
833
+ auto copy = Copy(new_fields[i]);
834
+ new_fields.Set(i, copy);
835
836
}
837
838
return MakeNewFunction(ret_group, tuple->checked_type(), TupleNode::make(new_fields));
0 commit comments