python中numpy出现错误TypeError: data type not understood
错误代码sign_arry = np.ones(batch_size, 1) * sign报错情况TypeError: data type not understood错误原因np.ones和np.zeros要想生成二维数组需要加双括号解决代码sign_arry = np.ones((batch_size, 1)) * sign
原创
2020-06-15 10:39:03 ·
5738 阅读 ·
0 评论