点此进入CSDN

点此添加QQ好友 加载失败时会显示




tensorflow1.0 placeholder占位符

import tensorflow as tf

#(tf.float32,[2,2])
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.]}))



[14.]

  

posted @ 2020-03-15 00:06  高颜值的殺生丸  阅读(332)  评论(0编辑  收藏  举报

作者信息

昵称:

刘新宇

园龄:4年6个月


粉丝:1209


QQ:522414928