In [3]:
import tensorflow as tf
In [10]:
tf.reset_default_graph()
with tf.Session() as sess:
x = tf.placeholder(tf.float32, shape=(10), name="x")
y = tf.argmax(x, 0)
x_, y_ = sess.run([x, y], feed_dict={x:list(range(10))})
print(x, y_)
In [ ]:
In [ ]: