Tensorflow placeholder

2019-05-20  本文已影响0人  微软czw

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.]}))


!!!
output=tf.mul  老用法  (X)

output=tf.multiply

上一篇 下一篇

猜你喜欢

热点阅读