I am using AUTOTUNE for audio processing.
JavaScript
x
3
1
import tensorflow as tf
2
AUTOTUNE = tf.data.AUTOTUNE
3
But i am getting attribute error which said “module ‘tensorflow._api.v2.data’ has no attribute ‘AUTOTUNE'”. Tensorflow version is 2.3.0. How to solve this?
Advertisement
Answer
According to the TensorFlow 2.3 documentation, AUTOTUNE
lies under the tensorflow.data.experimental
namespace. So using
JavaScript
1
2
1
AUTOTUNE = tf.data.experimental.AUTOTUNE
2
should avoid this error.