Skip to content

Instantly share code, notes, and snippets.

@hackintoshrao
Created May 7, 2018 03:45
Show Gist options
  • Save hackintoshrao/c902d6a11439b1bb0267dd96d786d977 to your computer and use it in GitHub Desktop.
Save hackintoshrao/c902d6a11439b1bb0267dd96d786d977 to your computer and use it in GitHub Desktop.
Tensorflow session run with more than one input through feed_dict
import tensorflow as tf
x = tf.placeholder(tf.string)
y = tf.placeholder(tf.int32)
z = tf.placeholder(tf.float32)
with tf.Session() as sess:
output = sess.run(x, feed_dict={x: 'Test String', y: 123, z: 45.67})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment