In this recipe, we will learn how to put multiple operations on the same computational graph.
Layering nested operations
Getting ready
It's important to know how to chain operations together. This will set up layered operations in the computational graph. For a demonstration, we will multiply a placeholder by two matrices and then perform addition. We will feed in two matrices in the form of a three-dimensional NumPy array:
import tensorflow as tf sess = tf.Session()
How to do it...
It is also important to note how the data will change shape as it passes through...