import tensorflow as tf print(tf.__version__)
2.0.0
c1 = tf.constant(5, name = 'x') c2 = tf.constant(6.0, tf.float32, name = 'y') c3 = tf.constant(7.0, tf.float32, name = 'z')
print('c1: ', c1) print('c2: ', c2) print('c3: ', c3)
c1: tf.Tensor(5, shape=(), dtype=int32) c2: tf.Tensor(6.0, shape=(), dtype=float32) c3: tf.Tensor(7.0, shape=(), dtype=float32)