1、报错:AttributeError: module 'numpy' has no attribute 'int'
解决办法:把np.int
替换为np.int_
、np.int32
或者np.int64 即可
2、报错:AttributeError: module 'numpy' has no attribute 'float'
解决办法:把np.float替换为float或者np.float64/np.float32 即可
1、报错:AttributeError: module 'numpy' has no attribute 'int'
解决办法:把np.int
替换为np.int_
、np.int32
或者np.int64 即可
2、报错:AttributeError: module 'numpy' has no attribute 'float'
解决办法:把np.float替换为float或者np.float64/np.float32 即可