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?

tensorflow
2 votesLP190.00
0 Answers
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?