placeholder
来源:互联网 发布:网络打卡 编辑:程序博客网 时间:2024/05/17 22:42
placeholder作用就是接受外部传来的数据,相当于一个占位符。
变量值不再是直接在图中tensorflow图中定义,而是给出一个占位符,在session中再给值。
palceholder
# View more python learning tutorial on my Youtube and Youku channel!!!# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg# Youku video tutorial: http://i.youku.com/pythontutorial"""Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly."""from __future__ import print_functionimport tensorflow as tfinput1 = tf.placeholder(tf.float32)input2 = tf.placeholder(tf.float32)ouput = tf.multiply(input1, input2)with tf.Session() as sess: print(sess.run(ouput, feed_dict={input1: [7.], input2: [2.]}))
0 0
- placeholder
- placeholder
- Placeholder
- placeholder
- placeholder
- placeholder
- placeholder
- 容器PlaceHolder
- placeholder控件
- PlaceHolder入门
- PlaceHolder 作用
- PlaceHolder 类
- PlaceHolder控件
- 关于placeholder();
- html placeholder
- UItextView Placeholder
- 兼容placeholder
- 兼容placeholder
- XML 创建多个Element的XML文件
- 禁止鼠标右键
- iozone文件系统性能测试工具
- IDispatch接口
- 安卓开发中根据城市名获取经纬度
- placeholder
- Unity3D 脚本生命周期
- Android7.0系统添加指纹界面了解详情报错crash
- Python读写Excel:xlrd与xlwt
- 理解angular中的module和injector,即依赖注入
- Sphinx中文分词搜索Coreseek Windows下安装与基本使用简介
- 提高jQuery效率
- python 内置模块之hashlib、hmac、uuid
- 链接地址