Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 445 Bytes
# Import TensorFlow.
import tensorflow as tf
# Basic operations with some constants
# Create constants a and b
# Build a data flow graph
a = tf.constant(10)
b = tf.constant(5)
# Create a session to evaluate the symbolic expression
sess = tf.Session()
# Trigger an evaluation of the data flow graph.
print("Constants addition: %i" % + b))
print("Constants multiplication: %i" % * b))
# Close the session
You can’t perform that action at this time.