Module 'tensorflow' has no attribute 'python'
I'm using tensorflow 1.13 and when I try to import 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?