numpy.ndarray类型未定义__round__方法错误

时间:2019-10-30 17:45:37

标签: python numpy

当我在下面运行此行代码时,它给我以下错误

voxel_cols = [f"voxel_{i}" for i in range(DIMS[0] * DIMS[1] * DIMS[2])]
data = np.array(voxels)
voxels = [round(v) for v in voxels]

0 个答案:

没有答案