I have a file X.npy of 11GB which I cannot load in my memory altogether.

Shape of X.npy is `(18873, 224, 224, 3)`

**Now I want to load only few rows (say 1024) `(:1024, 224, 224, 3)` from it. How could I do this without loading X.npy in my ram memory?**

I found no parameters in [np.load](https://numpy.org/doc/stable/reference/generated/numpy.load.html) to achieve this. Is there some another way around?

I guess this could be done using [np.memmap](https://numpy.org/doc/stable/reference/generated/numpy.memmap.html), but I stuck using the offset parameter. It's acting wierdly. X.npy has dtype of 'float32'.