Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (15 loc) · 291 Bytes

2011-01-07-memory-map-npy-files.md

File metadata and controls

16 lines (15 loc) · 291 Bytes
layout title date categories slug
post
memory map npy files
2011-01-07 21:04
python
numpy
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')