adobay opened a new issue #5290: relay build error, how to find root cause? URL: https://github.com/apache/incubator-tvm/issues/5290 please help!!! error message: ``` File "/Users/adobay/Documents/code/tvm/tvm/include/tvm/tir/expr.h", line 143 File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 78, in cfun rv = local_pyfunc(*pyargs) File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/relay/backend/_backend.py", line 57, in lower raise RuntimeError(msg) File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/relay/backend/_backend.py", line 49, in lower f = tvm.driver.lower(sch, inputs, name=func_name) File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/driver/build_module.py", line 150, in lower stmt = form_body(sch) File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/driver/build_module.py", line 99, in form_body sch = sch.normalize() File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/te/schedule.py", line 86, in normalize return _ffi_api.ScheduleNormalize(self) File "/Users/adobay/Documents/code/tvm/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 213, in __call__ raise get_last_ffi_error() [bt] (8) 9 libtvm.dylib 0x00000001281ea4a8 tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>::InitVTable()::'lambda6'(tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*)::__invoke(tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*) + 24 [bt] (7) 8 libtvm.dylib 0x000000012846081b tvm::tir::ExprMutator::VisitExpr_(tvm::tir::SubNode const*) + 43 [bt] (6) 7 libtvm.dylib 0x000000012822876e non-virtual thunk to tvm::tir::StmtExprMutator::VisitExpr(tvm::PrimExpr const&) + 14 [bt] (5) 6 libtvm.dylib 0x00000001281e6c25 tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>::VisitExpr(tvm::PrimExpr const&) + 53 [bt] (4) 5 libtvm.dylib 0x00000001281e7041 tvm::NodeFunctor<tvm::PrimExpr (tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*)>::operator()(tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*) const + 305 [bt] (3) 4 libtvm.dylib 0x00000001281ea4a8 tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>::InitVTable()::'lambda6'(tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*)::__invoke(tvm::runtime::ObjectRef const&, tvm::tir::ExprFunctor<tvm::PrimExpr (tvm::PrimExpr const&)>*) + 24 [bt] (2) 3 libtvm.dylib 0x0000000128460871 tvm::tir::ExprMutator::VisitExpr_(tvm::tir::SubNode const*) + 129 [bt] (1) 2 libtvm.dylib 0x000000012845024a tvm::tir::BinaryOpNode<tvm::tir::SubNode>::make(tvm::PrimExpr, tvm::PrimExpr) + 394 [bt] (0) 1 libtvm.dylib 0x00000001281c4eb9 dmlc::LogMessageFatal::~LogMessageFatal() + 57 File "/Users/adobay/Documents/code/tvm/tvm/include/tvm/tir/expr.h", line 143 TypeError: Check failed: a.dtype() == b.dtype(): mismatched types During handling of the above exception, another exception occurred: TypeError: Check failed: a.dtype() == b.dtype(): mismatched types Error during compile function ----------------------------- v0.0.4 fn (%p0: Tensor[(6, 3), float32], %p1: Tensor[(6, 3), float32], %p2: Tensor[(6, 3), float32], %p3: Tensor[(6, 1), int64], %p4: Tensor[(1, 6), int64], %p5: Tensor[(1), float32], Primitive=1) -> Tensor[(1, 18), float32] { %0 = full(0f /* ty=float32 */, shape=[6, 1, 3], dtype="float32") /* ty=Tensor[(6, 1, 3), float32] */; %1 = expand_dims(%p0, axis=1) /* ty=Tensor[(6, 1, 3), float32] */; %2 = expand_dims(%p1, axis=1) /* ty=Tensor[(6, 1, 3), float32] */; %3 = expand_dims(%p2, axis=1) /* ty=Tensor[(6, 1, 3), float32] */; %4 = (%0, %1, %2, %3); %5 = concatenate(%4, axis=1) /* ty=Tensor[(6, 4, 3), float32] */; %6 = reshape(%p4, newshape=[-1, 1]) /* ty=Tensor[(6, 1), int64] */; %7 = (%p3, %6); %8 = concatenate(%7, axis=1) /* ty=Tensor[(6, 2), int64] */; %9 = transpose(%8, axes=[-1, 0]) /* ty=Tensor[(2, 6), int64] */; %10 = gather_nd(%5, %9) /* ty=Tensor[(6, 3), float32] */; %11 = cumsum(%10, axis=1, exclusive=False, reverse=False) /* ty=Tensor[(6, 3), float32] */; %12 = reshape(%11, newshape=[-1, 18]) /* ty=Tensor[(1, 18), float32] */; add(%12, %p5) /* ty=Tensor[(1, 18), float32] */ } ```
---------------------------------------------------------------- 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] With regards, Apache Git Services
