January 2018
Intermediate to advanced
310 pages
7h 48m
English
Here is another simple example of how TensorFlow is used to add two numbers.
import tensorflow as tf
The preceding import will be necessary for all the latter examples. It is assumed that the reader has imported the library for all the examples. A placeholder can be defined in the following manner. The placeholders are not loaded when assigned. Here, a variable is defined as a placeholder with a type of float32. A placeholder is an empty declaration and can take values when a session is run.
x = tf.placeholder(tf.float32) y = tf.placeholder(tf.float32)
Read now
Unlock full access