Tensorflow code example:

import tensorflow as tf # Declare variables (with initial values) x = tf.Variable(3, name='x') y = tf.Variable(4, name='y') # Graph node to compute f = (x * x * y) + y + 2

import tensorflow as tf # Declare variables (with initial values) x = tf.Variable(3, name='x') y = tf.Variable(4, name='y') # Instantiate x and y with tf.Session() as sess: x.initializer.run() y.initializer.run()

import tensorflow as tf # Declare variables (with initial values) x = tf.Variable(3, name='x') y = tf.Variable(4, name='y') init = tf.global_variables_initializer() # Instantiate x and y with tf.Session() as sess: init.run()