1 Star 1 Fork 1

海之号角/TensorFlowDemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tf_demo04_placeholder.py 456 Bytes
一键复制 编辑 原始数据 按行查看 历史
海之号角 提交于 2016-12-11 09:56 +08:00 . 提交项目文件
# coding:utf-8
"""
tf_demo04_placeholder
Created on 2016/12/9 14:26
@author: GuoYufu
@group : OceanHorn
@contact: OceanHorn@163.com
"""
import tensorflow as tf
if __name__ == "__main__":
input1 = tf.placeholder(dtype=tf.float32)
input2 = tf.placeholder(dtype=tf.float32)
output = tf.mul(input1, input2)
with tf.Session() as session:
print session.run(
fetches=output, feed_dict={input1:[7.], input2:[2.]}
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/OceanHorn/TensorFlowDemo.git
git@gitee.com:OceanHorn/TensorFlowDemo.git
OceanHorn
TensorFlowDemo
TensorFlowDemo
master

搜索帮助