# -*- coding: utf-8 -*-
"""
Created on Wed May 12 13:59:48 2021
@author: monastic
"""
import tensorflow as tf
input1 = tf.placeholder(tf.float32) #tensorflow大部分只能处理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.]}))
# placeholder 与 feed_dict 是绑定的
# 在sess.run的时候给值,以字典的形式给入
14.