January 2018
Intermediate to advanced
474 pages
10h 23m
English
The constant valued tensors are created using the tf.constant() function that has the following signature:
tf.constant( value, dtype=None, shape=None, name='Const', verify_shape=False)
Let's look at the example code provided in the Jupyter Notebook with this book:
c1=tf.constant(5,name='x')c2=tf.constant(6.0,name='y')c3=tf.constant(7.0,tf.float32,name='z')
Let's look into the code in detail:
Read now
Unlock full access