November 2018
Intermediate to advanced
322 pages
7h 54m
English
The constant valued tensors are created using the tf.constant() function, and has the following definition:
tf.constant( value, dtype=None, shape=None, name='const_name', verify_shape=False )
Let's create some constants with the following code:
const1=tf.constant(34,name='x1')const2=tf.constant(59.0,name='y1')const3=tf.constant(32.0,dtype=tf.float16,name='z1')
Let's take a look at the preceding code in detail:
Read now
Unlock full access