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

Wrap dataset generation function to disable autograph to fix issues with invalid tensor shapes #2069

Merged
merged 1 commit into from Jun 30, 2020

Conversation

tgaddair
Copy link
Collaborator

When the make_dataset function is pickled and sent to the remote workers, TensorFlow's Autograph system attempts to convert it into the graph, but in the process changes the behavior, resulting in tensors with invalid shapes being fed to the Keras model. This PR disables autograph in affected versions of TensorFlow.

…ith invalid tensor shapes

Signed-off-by: Travis Addair <taddair@uber.com>
@tgaddair tgaddair requested a review from abditag2 June 30, 2020 19:40
Copy link
Collaborator

@abditag2 abditag2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abditag2 abditag2 merged commit a860d5e into master Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants