[solved][mxnet] nullptr with nn.max_pool2d


#1

Hello,
I am getting a nullptr error:

an internal invariant was violated while typechecking your program [14:55:59] /home/SERILOCAL/n.perto/Documents/tvm/src/relay/op/nn/pooling.cc:73: Check failed: data != nullptr: 
;

at each nn.max_pool2d, when building standard models (vgg, mobilenet, alexnet, etc. ) when using the mxnet frontend. I tested it targeting for android (cpu, vulkan, opencl) and webgl.
Why am I getting this error?


#2

similar to Fail to load ONNX ResNet-50


#3

Exactly.
So it is an error of wrong input shape given, correcting it solved the problem.
Thank you.