Report error:
Error in operator _plus10: [19:53:35] src/operator/nn/./../tensor/../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node _plus10 at 1-th input: expected [100,1,3], got [1,100,3]
Where can I find the _plus10? Is there any debug tools?
If I can find the corresponding symbol, I can correct it simply with mx.sym.reshape. But how can I find it?
If the model is defined by mx.nd or Gluon, you can cancel the hybridize and set the environment variable MXNET_ENGINE_TYPE.
‘MXNET_ENGINE_TYPE=NaiveEngine python xxx.py’ enable MXNet to execute operators synchronously in single thread. It can be used to debug.
If the model is defined by symbol, I think visualizing the network by mxnet.visualization.plot_network is a solution.
Maybe others have some better solutions.
Thanks.
Most helpful comment
If the model is defined by mx.nd or Gluon, you can cancel the hybridize and set the environment variable MXNET_ENGINE_TYPE.
‘MXNET_ENGINE_TYPE=NaiveEngine python xxx.py’ enable MXNet to execute operators synchronously in single thread. It can be used to debug.
If the model is defined by symbol, I think visualizing the network by mxnet.visualization.plot_network is a solution.
Maybe others have some better solutions.