如何最有效地对大文件求和(100, 1024, 1024) .npz?有没有更好的文件格式来存储给定维度的Python数据?
(100, 1024, 1024) .npz
我目前用它来对矩阵求和:
summed_matrix = np.sum([np.load(file) for file in files_list])
这超出了我的可用内存。
python numpy
numpy ×1
python ×1