MicrosoftDocs / ms-learn-ml-crash-course-python

Code samples for the ML Crash Course learning path.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code not running

DBFairy opened this issue · comments

Exercise 9 - Advanced Neural Networks
Step 1
Error:
AttributeError Traceback (most recent call last)
in
13 warnings.filterwarnings("ignore")
14 import tensorflow as tf
---> 15 session_conf = tf.ConfigProto(intra_op_parallelism_threads=1,inter_op_parallelism_threads=1)
16
17 from keras import backend as K

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


Attempted to resolve through reformatting of the command, nil success.
Any ideas or resolution gratefully received.

I had the same issue - quick search of the error lead me to the fixes, but I've updated the syntax in pull request #7 with the fixes in place.

As a heads-up, I ran into one or two more issues on the next module and had to fix them on the fly. However I didn't create a pull request nor issue for that.