Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 298 Bytes
# https://mubaris.com/2017-10-21/tensorflow-101
# Import TensorFlow
import tensorflow as tf
# Define Constant
output = tf.constant("Hello, World")
# To print the value of constant you need to start a session.
sess = tf.Session()
# Print
print(sess.run(output))
# Close the session
sess.close()
You can’t perform that action at this time.