masahi commented on a change in pull request #7754:
URL: https://github.com/apache/tvm/pull/7754#discussion_r605399400
##########
File path: src/relay/ir/dataflow_matcher.cc
##########
@@ -898,6 +932,11 @@ class PatternPartitioner : protected MixedModeMutator {
public:
Expr Partition(const DFPattern& pattern, const Expr& pre, const Map<String,
ObjectRef>& attrs,
PackedFunc check) {
+ if (pattern.as<FunctionPatternNode>()) {
+ LOG(WARNING) << "Paritioning a Function that isn't called doesn't make
sense, skipping"
Review comment:
@mbrookhart
--
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]