Module 'tensorflow' has no attribute 'python'
I'm using TensorFlow 1.13 and when I try to import the python module from TensorFlow it shows that TensorFlow has that folder inside of it. Also, the GitHub repository contains that folder, but when I type
import tensorflow.python.tools.optimize_for_inference as opt
I get an error like this
module 'tensorflow' has no attribute 'python'
Why I'm getting this if I have python in my TensorFlow?