莫烦TensorFlow_04 placeholder

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

  

posted @ 2018-03-31 21:07  路边的十元钱硬币  阅读(88)  评论(0编辑  收藏  举报