代码:
A = np.random.rand(1e4, 1e4).astype('float32')
报错:
TypeError: 'float' object cannot be interpreted as an integer
解决办法:
A = np.random.rand(10000, 10000).astype('float32')
代码:
A = np.random.rand(1e4, 1e4).astype('float32')
报错:
TypeError: 'float' object cannot be interpreted as an integer
解决办法:
A = np.random.rand(10000, 10000).astype('float32')