similarity icon indicating copy to clipboard operation
similarity copied to clipboard

Fixed import of AUTOTUNE

Open arcAman07 opened this issue 2 years ago • 1 comments

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

arcAman07 avatar Sep 20 '22 12:09 arcAman07

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

owenvallis avatar Sep 23 '22 04:09 owenvallis