In [6]:
tensor = tf.convert_to_tensor(5.0, tf.float32)
print('tensor: ', tensor)
tensor:  tf.Tensor(5.0, shape=(), dtype=float32)