import tensorflow as tf
input1 = tf.placeholder(tf.float32)#创建传递参数
input2 = tf.placeholder(tf.float32)#创建传递参数
output = tf.multiply(input1,input2)
with tf.Session() as sess:
print sess.run(output,feed_dict={input1:[7.],input2:[2.]})#feed_dic填入如需要传递的placeholder