莫烦TensorFlow_04

运行的时候赋值,很像函数的形参

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

猜你喜欢

转载自blog.csdn.net/u014488388/article/details/79749585
今日推荐