Created
December 16, 2019 06:17
-
-
Save ktatar/f2873063cd6b50488b8c48fc8f458727 to your computer and use it in GitHub Desktop.
[test-tensorflow] simple python code to test tensorflow #python #tensorflow #test
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
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