Discussions>Module 'tensorflow' has no attribute 'python'>

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?

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