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

Fixed import of AUTOTUNE #288

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

Conversation

arcAman07
Copy link

@arcAman07 arcAman07 commented Sep 20, 2022

I was running the pytest command at the root of the dir and I found an import error of AUTOTUNE. According to the TensorFlow 2.3 documentation, AUTOTUNE lies under the tensorflow.data.experimental rather tensorflow.data. This fixes that error.
Signed off @arcAman07
Tagging the maintainers for review : @owenvallis

@owenvallis
Copy link
Collaborator

is tf.data.AUTOTUNE a breaking import in 2.3? The official docs import as tf.data.AUTOTUNE for current versions of TF. See here https://www.tensorflow.org/guide/data_performance#prefetching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants