tensorflow1.0 placeholder占位符
时间:2020-03-15 10:12:48
收藏:0
阅读:115
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.]
原文:https://www.cnblogs.com/LiuXinyu12378/p/12495363.html
评论(0)