Created
March 26, 2018 05:43
-
-
Save kechan/55bb1654aa209fcc04af52e8c453b548 to your computer and use it in GitHub Desktop.
Tensorflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = tf.constant(2) | |
b = tf.constant(3) | |
x = tf.add(a, b) | |
writer = tf.summary.FileWriter('./graphs', tf.get_default_graph()) | |
with tf.Session() as sess: | |
print(sess.run(x)) | |
writer.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment