Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing HDF5Matrix .dtype and .shape properties #10749

Merged
merged 3 commits into from
Jul 23, 2018

Conversation

kmader
Copy link
Contributor

@kmader kmader commented Jul 23, 2018

Summary

Adding code to the initialization function of HDF5Matrix so that .dtype and .shape reflect the actual values returned by the normalizer. This is particularly important because the model.fit function looks at the shape to determine if the code can be run and if there are changes to shape (random cropping, downsampling, edge removal, ...) performed in the normalizer these are not currently reflected in the .shape property. The dtype mismatch currently does not cause any issues (that I know of) but should also be adjusted as well.

Related Issues

#8304

PR Overview

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

kmader added 2 commits July 23, 2018 10:59
Adding code to the initialization function of `HDF5Matrix` so that `.dtype` and `.shape` reflect the actual values returned by the normalizer
adding tests for normalizer functions that change dtype and shape
@kmader kmader changed the title Fixing HDF5Matrix .dtype and .shape output Fixing HDF5Matrix .dtype and .shape properties Jul 23, 2018
removing unnecessary whitespace to make pep8 happy
@fchollet fchollet merged commit 1c4bb1e into keras-team:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants