Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix support for numpy mmap backend (np.memmap) #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix support for numpy mmap backend (np.memmap) #200

wants to merge 1 commit into from

Conversation

nicolaerosia
Copy link

Summary

ImageDataGenerator.flow needs to create an NumpyArrayIterator
which honors the input's dtype.
NumpyArrayIterator needs to use numpy.asanyarray to work with numpy.memmap.

Related Issues

PR Overview

  • [N] This PR requires new unit tests [y/n] (make sure tests are included)
  • [N] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
  • [Y] This PR is backwards compatible [y/n]
  • [N] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

ImageDataGenerator.flow needs to create an NumpyArrayIterator
which honors the input's dtype.
NumpyArrayIterator needs to use numpy.asanyarray to work with numpy.memmap.

Signed-off-by: Nicolae Rosia <[email protected]>
@Dref360
Copy link
Contributor

Dref360 commented Apr 18, 2019

This PR requires new unit tests.

@nicolaerosia
Copy link
Author

I missed this one, Numpy array of rank 4 or a tuple.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants