12 lines
179 B
Python
12 lines
179 B
Python
import tensorflow as tf
|
|
|
|
x1=tf.constant(5)
|
|
x2=tf.constant(6)
|
|
result = tf.multiply(x1,x2)
|
|
|
|
print(result)
|
|
|
|
with tf.Session() as sess:
|
|
output =sess.run(result)
|
|
print(output)
|