Skip to content

Instantly share code, notes, and snippets.

@ktatar
Created December 16, 2019 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktatar/f2873063cd6b50488b8c48fc8f458727 to your computer and use it in GitHub Desktop.
Save ktatar/f2873063cd6b50488b8c48fc8f458727 to your computer and use it in GitHub Desktop.
[test-tensorflow] simple python code to test tensorflow #python #tensorflow #test
import tensorflow as tf
# Create some tensors
a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
c = tf.matmul(a, b)
print(c)
text_file = open("Output.txt", "w")
text_file.write("Hello World, my num is %s" % c)
text_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment