layout | title | date | categories | slug | ||
---|---|---|---|---|---|---|
post |
memory map npy files |
2011-01-07 21:04 |
|
memory-map-npy-files |
Mem-map the stored array, and then access the second row directly from disk:
X = np.load('/tmp/123.npy', mmap_mode='r')