Got error when runing c++ c_predict_api

I compiled mxnet on ubuntu18, and got
Then tested it by the example of my model, but got error when runing program on the line of MXPredSetInput(pred_hnd, "data",, static_cast<mx_uint>(image_size));,
the error is:

[17:21:39] …/src/nnvm/ Loading symbol saved by previous version v1.4.1. Attempting to upgrade…
[17:21:39] …/src/nnvm/ Symbol successfully upgraded!

Segmentation fault: 11

Stack trace:
[bt] (0) /home/xxh/pytorch/mxnet/build/ [0x7f7935d11119]
[bt] (1) /lib/x86_64-linux-gnu/ [0x7f7934c69f20]
[bt] (2) /home/xxh/pytorch/mxnet/build/ [0x7f7935bec371]
[bt] (3) ./predict(predict(void*, std::vector<float, std::allocator > const&, std::vector<std::string, std::allocatorstd::string > const&)+0x86) [0x55d8383f641d]
[bt] (4) ./predict(main+0x61a) [0x55d8383f6ba3]
[bt] (5) /lib/x86_64-linux-gnu/ [0x7f7934c4cb97]
[bt] (6) ./predict(_start+0x2a) [0x55d8383f5f6a]

I don’t know how to fix it.

Solved. input the wrong dim.