jikechao opened a new issue, #14637:
URL: https://github.com/apache/tvm/issues/14637
Compile the ONNX model `scan_sum.onnx` will crash. the crash messages are
the following:
```
Traceback (most recent call last):
tvm._ffi.base.TVMError: Traceback (most recent call last):
25: TVMFuncCall
24:
tvm::relay::backend::RelayBuildModule::GetFunction(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
tvm::runtime::ObjectPtr<tvm::runtime::Object>
const&)::{lambda(tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*)#3}::operator()(tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*) const
23: tvm::relay::backend::RelayBuildModule::Build(tvm::IRModule,
tvm::runtime::Array<tvm::Target, void> const&, tvm::Target const&,
tvm::relay::Executor const&, tvm::relay::Runtime const&,
tvm::WorkspaceMemoryPools const&, tvm::ConstantMemoryPools const&,
tvm::runtime::String)
22: tvm::relay::backend::RelayBuildModule::BuildRelay(tvm::IRModule,
tvm::runtime::String const&)
21: tvm::relay::backend::ExecutorCodegen::Codegen(tvm::IRModule,
tvm::relay::Function const&, tvm::runtime::String)
20: void tvm::relay::backend::ExecutorCodegen::CallFunc<tvm::IRModule,
tvm::relay::Function, tvm::runtime::String>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, tvm::IRModule,
tvm::relay::Function, tvm::runtime::String)
19:
tvm::relay::backend::GraphExecutorCodegenModule::GetFunction(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
tvm::runtime::ObjectPtr<tvm::runtime::Object>
const&)::{lambda(tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*)#2}::operator()(tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*) const
18: tvm::relay::backend::GraphExecutorCodegen::Codegen(tvm::IRModule,
tvm::relay::Function, tvm::runtime::String)
17:
tvm::relay::backend::MemoizedExprTranslator<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> >
>::VisitExpr(tvm::RelayExpr const&)
16: tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>::VisitExpr(tvm::RelayExpr const&)
15: tvm::NodeFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::runtime::ObjectRef
const&, tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>*)>::operator()(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr const&)>*)
const
14: _ZZN3tvm5relay11ExprFunc
13:
tvm::relay::backend::GraphExecutorCodegen::VisitExpr_(tvm::relay::TupleNode
const*)
12:
tvm::relay::backend::MemoizedExprTranslator<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> >
>::VisitExpr(tvm::RelayExpr const&)
11: tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>::VisitExpr(tvm::RelayExpr const&)
10: tvm::NodeFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::runtime::ObjectRef
const&, tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>*)>::operator()(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr const&)>*)
const
9: _ZZN3tvm5relay11ExprFunc
8:
tvm::relay::backend::GraphExecutorCodegen::VisitExpr_(tvm::relay::CallNode
const*)
7:
tvm::relay::backend::GraphExecutorCodegen::GraphAddCallNode(tvm::relay::CallNode
const*, std::unordered_map<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, dmlc::any,
std::hash<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<std::pair<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const, dmlc::any> > >)
6:
tvm::relay::backend::MemoizedExprTranslator<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> >
>::VisitExpr(tvm::RelayExpr const&)
5: tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>::VisitExpr(tvm::RelayExpr const&)
4: tvm::NodeFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::runtime::ObjectRef
const&, tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr
const&)>*)>::operator()(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<std::vector<tvm::relay::backend::GraphNodeRef,
std::allocator<tvm::relay::backend::GraphNodeRef> > (tvm::RelayExpr const&)>*)
const
3: _ZZN3tvm5relay11ExprFunc
2:
tvm::relay::backend::GraphExecutorCodegen::VisitExpr_(tvm::relay::CallNode
const*)
1:
tvm::relay::backend::GraphExecutorCodegen::GraphAddCallNode(tvm::relay::CallNode
const*, std::unordered_map<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, dmlc::any,
std::hash<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<std::pair<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const, dmlc::any> > >)
0: _ZN3tvm7runtime6detail
File
"/workplace/software/tvm/tvm/src/relay/backend/graph_executor_codegen.cc", line
452
TVMError:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (func) is false: Expected the operator to be a global var,
but got relay.Let
```
### Steps to reproduce
1. download the ONNX model by this link: [scan_sum.onnx](...)
2. compile the ONNX model using the the command:
```
python -m tvm.driver.tvmc compile --target 'llvm' scan_sum.onnx
```
### Triage
* codegen
* tvm::relay::backend::GraphExecutorCodegen
--
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]