October 2019
Intermediate to advanced
366 pages
12h 4m
English
As we have already seen, a constant is an immutable type of tensor that can be easily created using tf.constant:
a = tf.constant([1.0, 1.1, 2.1, 3.1], dtype=tf.float32, name='a_const')print(a)>> Tensor("a_const:0", shape=(4,), dtype=float32)
Read now
Unlock full access