Tensorflow学习四之placeholder

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]}))#使用placeholer必须使用feed_dict

上一篇:ios 初体验< UISegmentedControl 分段控件>


下一篇:集合类-----List接口