Created
July 29, 2016 16:44
-
-
Save arafatkatze/d4cf53b05fe3962a6ac5d89003c3d10a to your computer and use it in GitHub Desktop.
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 | |
a = tf.Graph() | |
input1 = tf.placeholder(tf.float32, shape=(2)) | |
input2 = tf.placeholder(tf.float32, shape=(2)) | |
output = tf.mul(input1, input2) | |
with tf.Session() as sess: | |
print(sess.run([output], feed_dict={input1:[7,2], input2:[2,4]})) | |
tf.train.write_graph(sess.graph_def, 'models/', 'test_graph_multi_dim.pb', as_text=True) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment