Nnvm/op.h:447: Check failed: pmap->type() == typeid(OpMap<ValueType>)


#1

Tutorial from_mxnet.py is no longer working with the latest 7243806f3 from master.

Error:

terminate called after throwing an instance of 'dmlc::Error'
  what():  [...] /dl/mxnet/3rdparty/tvm/nnvm/include/nnvm/op.h:447:
    Check failed: pmap->type() == typeid(OpMap<ValueType>)
    Attribute FInferShape of operator resize is registered as inconsistent types
    previously
      N4nnvm5OpMapISt8functionIFbRKNS_9NodeAttrsEPSt6vectorIN5mxnet6TShapeESaIS7_EESA_EEEE
    current
      N4nnvm5OpMapISt8functionIFbRKNS_9NodeAttrsEPSt6vectorINS_6TShapeESaIS6_EES9_EEEE

Stack trace returned 10 entries:

[bt] (0) /dl/mxnet/3rdparty/tvm/lib/libtvm.so(dmlc::StackTrace[abi:cxx11]()+0x17f) [0x7fdf248d0eff]
[bt] (1) /dl/mxnet/3rdparty/tvm/lib/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x39) [0x7fdf248d2399]
[bt] (2) /dl/mxnet/3rdparty/tvm/nnvm/python/nnvm/../../lib/libnnvm_compiler.so(nnvm::Op::set_attr<std::function<bool (nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<bool (nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)> const&, int)::{lambda(dmlc::any*)#1}::operator()(dmlc::any*) const+0x173) [0x7fdf1dbb1b33]
[bt] (3) /dl/mxnet/3rdparty/tvm/nnvm/python/nnvm/../../lib/libnnvm_compiler.so(nnvm::Op::UpdateAttrMap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (dmlc::any*)>)+0x129) [0x7fdf1db3f2a9]
[bt] (4) /dl/mxnet/3rdparty/tvm/nnvm/python/nnvm/../../lib/libnnvm_compiler.so(nnvm::Op& nnvm::Op::set_attr<std::function<bool (nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<bool (nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)> const&, int)+0x19f) [0x7fdf1dba5e0f]
[bt] (5) /dl/mxnet/3rdparty/tvm/nnvm/python/nnvm/../../lib/libnnvm_compiler.so(+0x8f991) [0x7fdf1da7f991]
[bt] (6) /lib64/ld-linux-x86-64.so.2(+0x10733) [0x7fdfb7484733]
[bt] (7) /lib64/ld-linux-x86-64.so.2(+0x151ff) [0x7fdfb74891ff]
[bt] (8) /lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x6f) [0x7fdfb6fcb2df]
[bt] (9) /lib64/ld-linux-x86-64.so.2(+0x147ca) [0x7fdfb74887ca]

#2

Step by step instructions I have used:

Same instructions but with version 1eb3344 were working fine.