Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Ch2, tensorflow import issue

Open worthy7 opened this issue 4 years ago • 1 comments

Hi there, I was tryting to just run all cells on the tensorflow chapter 2 book, and it hits this error right at the start.

AttributeError                            Traceback (most recent call last)
<ipython-input-2-e7f38f79c510> in <module>()
     38 
     39 import tensorflow as tf
---> 40 tfe = tf.contrib.eager
     41 
     42 # Eager Execution

AttributeError: module 'tensorflow' has no attribute 'contrib'

worthy7 avatar Jul 08 '21 06:07 worthy7

Yes the code is written for tensorflow 1 not tensorflow 2

jonwarghed avatar Nov 06 '21 12:11 jonwarghed