CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

Ch2, tensorflow import issue

worthy7 opened this issue · 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'

Yes the code is written for tensorflow 1 not tensorflow 2