美文网首页
Tensorflow placeholder

Tensorflow placeholder

作者: 微软czw | 来源:发表于2019-05-20 10:47 被阅读0次

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

相关文章

网友评论

      本文标题:Tensorflow placeholder

      本文链接:https://www.haomeiwen.com/subject/pomhzqtx.html