Got error when runing c++ c_predict_api

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

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

Segmentation fault: 11

Stack trace:
[bt] (0) /home/xxh/pytorch/mxnet/build/libmxnet.so(+0x754119) [0x7f7935d11119]
[bt] (1) /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f7934c69f20]
[bt] (2) /home/xxh/pytorch/mxnet/build/libmxnet.so(MXPredSetInput+0x81) [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/libc.so.6(__libc_start_main+0xe7) [0x7f7934c4cb97]
[bt] (6) ./predict(_start+0x2a) [0x55d8383f5f6a]

I don’t know how to fix it.

Solved. input the wrong dim.