Flashback: TensorFlow 1

Get an overview of TensorFlow 1.

We said numerous times that TensorFlow 2 is very different from TensorFlow 1. But we still don’t know what it used to be like. Therefore, let’s now look back to see how the same sigmoid computation could have been implemented in TensorFlow 1.

Warning: We won’t be able to execute the following code in TensorFlow 2.x as it stands.

A graph object

First, we’ll define a graph object, which we’ll populate with operations and variables later:

graph = tf.Graph() # Creates a graph
session = tf.InteractiveSession(graph = graph) # Creates a session

Get hands-on with 1200+ tech skills courses.