mbrookhart commented on a change in pull request #5627:
URL: https://github.com/apache/incubator-tvm/pull/5627#discussion_r428252217



##########
File path: src/relay/ir/dataflow_matcher.cc
##########
@@ -625,7 +674,13 @@ class PatternPartitioner : protected MixedModeMutator {
     for (size_t i = 0; i < group.args.size(); ++i) {
       args.push_back(memo_[group.args[i]]);
     }
-    return Call(group.function, args);
+    Function func = WithAttr(group.function, "Partitioned", 
String(group.name));
+    if (!attrs_.empty()) {

Review comment:
       If I remove it, the begin() method of the underlying object segfaults, 
sometimes the underlying object can be null. This check ensures that segfault 
doesn't happen.




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


Reply via email to