#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-11-30 20:22:37
# @Author : Lebhoryi@gmail.com
# @Link : https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/2-5-placeholde/
# @Version : 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.]}))
tf.placeholder
最新推荐文章于 2023-10-22 23:40:14 发布