Constant

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)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset