tensor_1 = tf.constant([x for x in range(1,10)])
with tf.Session() as sess:
print(tensor_1.eval())
The print results: [123456789]
tensor_1 = tf.constant([x for x in range(1,10)])
with tf.Session() as sess:
print(tensor_1.eval())
The print results: [123456789]