save as binary file
arr = np.memmap(filename, dtype=dtype, mode='w+', shape=(arr_len,)) arr.flush()
numpy.memmap — NumPy v1.25 Manual
Site Navigation
https://numpy.org/doc/stable/reference/generated/numpy.memmap.html
Seonglae Cho
Seonglae Choarr = np.memmap(filename, dtype=dtype, mode='w+', shape=(arr_len,)) arr.flush()