import tensorflow as tf
import numpy as np
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:[3.], input2:[6.]}))
Placeholder()传入值的应用
猜你喜欢
转载自blog.csdn.net/qq_25974431/article/details/79889994
今日推荐
周排行