求助:有人遇到过这个报错吗mxnet

mxnet.base.MXNetError: [09:34:58] c:\jenkins\workspace\mxnet-tag\mxnet\src\operator\tensor…/mxnet_op.h:507: Check failed: from.Size() == to.Size() (40 vs. 1600) :

Traceback (most recent call last):
File “E:/TransferLearing/hymenoptera_data/TLforSpectra/My_DaNN.py”, line 223, in
model = train_net(net,epoch=e, data_src=data_src, data_tar=data_tar,batch_size=5,trainer=trainer,ctx=ctx)
File “E:/TransferLearing/hymenoptera_data/TLforSpectra/My_DaNN.py”, line 171, in train_net
print(y_src)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\mxnet\ndarray\ndarray.py”, line 194, in repr
return ‘\n%s\n<%s %s @%s>’ % (str(self.asnumpy()),
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\mxnet\ndarray\ndarray.py”, line 1996, in asnumpy
ctypes.c_size_t(data.size)))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\mxnet\base.py”, line 253, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [09:34:58] c:\jenkins\workspace\mxnet-tag\mxnet\src\operator\tensor…/mxnet_op.h:507: Check failed: from.Size() == to.Size() (40 vs. 1600) :

你可能感兴趣的:(python,mxnet,mxnet,python)