使用django做了一个接口,使用了cnocr,但并行调用一段时间后mxnet报了如下错误,是模型中尺寸不匹配?
spotlightv opened this issue · 1 comments
terminate called after throwing an instance of 'dmlc::Error'
what(): [16:24:07] src/operator/contrib/./../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node at 0-th output: expected [1,1,32,115], got [1,1,32,131]
Stack trace:
[bt] (0) /home/user/anaconda3/envs/summer/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x307d3b) [0x7f50ccd31d3b]
[bt] (1) /home/user/anaconda3/envs/summer/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x4b4cb9) [0x7f50ccedecb9]
[bt] (2) /home/user/anaconda3/envs/summer/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x4b5572) [0x7f50ccedf572]
[bt] (3) /home/user/anaconda3/envs/summer/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x60f04c) [0x7f50cd03904c]
[bt] (4) /home/user/anaconda3/envs/summer/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::imperative::SetShapeType(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, mxnet::DispatchMode*)+0x1d27) [0x7f50cfecbaa7]
只有并行时报错,单独调用接口时没有问题。