如何解决此问题?
ValueError: operands could not be broadcast together with shapes (4,) (3,)
我尝试更改列表大小,但无法正常工作。
receptiveField_arr=np.asarray(receptiveField, dtype="int16") inputImg_arr=np.asarray(inputImg.shape,dtype="int16")
receptiveField= np.array(receptiveField, dtype="int16")
left_padding=(receptiveField - 1) / 2
right_padding=receptiveField - 1 - left_padding
extra_padding=np.maximum(0, np.asarray(sampleSizes,dtype="int16")-(inputImg_arr+left_padding+right_padding))
right_padding+= extra_padding
我收到此错误
operands could not be broadcast together with shapes (4,) (3,)