April 2019
Intermediate to advanced
426 pages
11h 13m
English
The following steps describe the process of training our model:
In [ ]: session = tf.InteractiveSession()
Here, we are specifying a session for use in an interactive context, in this case a Jupyter notebook. A regular tf.Session is non-interactive and requires an explicit Session object to be passed using the with keyword when running operations. InteractiveSession removes this need and is more convenient as it reuses the session variable.
In [ ]: session.run(tf.global_variables_initializer()) ...