You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tvm.apache.org by Zacario Li via TVM Discuss <no...@discuss.tvm.ai> on 2019/08/12 02:48:09 UTC

[TVM Discuss] [Development] TVMError: Check failed: type_code_ == kDLInt (2 vs. 0) : expected int but get float


After I added a new OP in the project when I run the op test wrote by myself, the error comes out.
I double-checked the params, the data type is right, I don't know why this error happens.


    tvm._ffi.base.TVMError: Traceback (most recent call last):
      [bt] (2) /usr/local/lib/python3.6/dist-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(TVMFuncCall+0x65) [0x7f93011591b5]
      [bt] (1) /usr/local/lib/python3.6/dist-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::runtime::TypedPackedFunc<tvm::relay::Expr (tvm::relay::Expr, tvm::relay::Expr, int, int, double, double)>::AssignTypedLambda<tvm::relay::Expr (*)(tvm::relay::Expr, tvm::relay::Expr, int, int, double, double)>(tvm::relay::Expr (*)(tvm::relay::Expr, tvm::relay::Expr, int, int, double, double))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0xf4) [0x7f9300fd2174]
      [bt] (0) /usr/local/lib/python3.6/dist-packages/tvm-0.6.dev0-py3.6-linux-x86_64.egg/tvm/libtvm.so(tvm::runtime::TVMPODValue_::operator int() const+0x10e5) [0x7f9300a0ea25]
      File "/mnt/f/projects/wsl/tvm/include/tvm/runtime/packed_func.h", line 460
    TVMError: Check failed: type_code_ == kDLInt (2 vs. 0) : expected int but get float





---
[Visit Topic](https://discuss.tvm.ai/t/tvmerror-check-failed-type-code-kdlint-2-vs-0-expected-int-but-get-float/3703/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/4be284da938c11841c9d67b163959a99320817a51df9a70aa775b08bf3007dca).

Tianqi Chen, UW, Seattle, WA, 98105, United States
http://tracking.discuss.tvm.ai/tracking/unsubscribe?msgid=rUyUpbtGJcvms7U2uPU78g2