masahi commented on a change in pull request #10502:
URL: https://github.com/apache/tvm/pull/10502#discussion_r820380421
##########
File path: src/relay/backend/graph_executor_codegen.cc
##########
@@ -515,8 +515,8 @@ class GraphExecutorCodegen : public
backend::MemoizedExprTranslator<std::vector<
return {};
}
std::vector<GraphNodeRef> VisitExpr_(const FunctionNode* op) override {
- ICHECK(op->GetAttr<String>(attr::kCompiler).defined())
- << "Only functions supported by custom codegen";
+ // ICHECK(op->GetAttr<String>(attr::kCompiler).defined())
+ // << "Only functions supported by custom codegen";
Review comment:
Remove this diff
##########
File path: src/relay/backend/utils.cc
##########
@@ -138,6 +139,9 @@ int64_t CalculateRelayExprSizeBytes(const Type& expr_type) {
}
return size;
}
+ if (expr_type->IsInstance<FuncTypeNode>()) {
+ return 0;
+ }
auto tensor_type = expr_type.as<TensorTypeNode>();
auto shape = tensor_type->shape;
Review comment:
Remove the above diff and add `ICHECK(tensor_type)`.
--
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]