tensorflow-placeholder-占位符的使用
来源:互联网 发布:apache压缩包安装 编辑:程序博客网 时间:2024/06/06 03:28
import tensorflow as tf
#placeholder用于创建占位,当需要时再将数据传入进去,第一个参数是数据类型
#第二个参数是数据的维数
input1 = tf.placeholder(tf.float32,[1,2])
input2 = tf.placeholder(tf.float32,[1,2])
output = tf.mul(input1,input2)
with tf.Session() as sess:
print(sess.run(output,feed_dict={input1:[[7.,1.]], input2:[[2.1,1.1]]}))
#placeholder用于创建占位,当需要时再将数据传入进去,第一个参数是数据类型
#第二个参数是数据的维数
input1 = tf.placeholder(tf.float32,[1,2])
input2 = tf.placeholder(tf.float32,[1,2])
output = tf.mul(input1,input2)
with tf.Session() as sess:
print(sess.run(output,feed_dict={input1:[[7.,1.]], input2:[[2.1,1.1]]}))
阅读全文
0 0
- tensorflow-placeholder-占位符的使用
- Tensorflow学习: Placeholder占位符
- 理解Sass的选择占位符%placeholder
- 自定义带占位符Placeholder的textView
- AI学习之路(20)占位符(placeholder)的使用
- 如何实现在TextView使用占位符(placeholder)
- spring 配置文件中的占位符 使用 context:property-placeholder
- HTML5 - 使用占位符文本placeholder添加文本框提示
- spring 配置文件中的占位符 使用 context:property-placeholder
- spring 配置文件中的占位符 使用 context:property-placeholder
- spring 配置文件中的占位符 使用 context:property-placeholder
- UITextView的Placeholder占位文字
- tensorflow: 如何使用占位符与变量
- 也谈placeHolder占位符
- sass继承 %占位符placeholder
- ios中实现带占位符placeholder的UITextview
- 占位符的使用
- iOS 实现 UITextView placeHolder的占位文字
- 汇编-输入小写字母用大写字母显示
- span内文字垂直居中
- 菜单的初始化
- Java虚拟机学习记录,数据区域
- Spring-Boot初学之配置文件application.properties(web性能)
- tensorflow-placeholder-占位符的使用
- 欢迎使用CSDN-markdown编辑器
- BZOJ 2039: [2009国家集训队]employ人员雇佣 最小割 二元组建图模型
- 初步使用disruptor
- HDU --- 4305 Lighting 【生成树计数 + 向量 】
- 前端省市区(县)三级联动下拉框
- Java 计算两个日期之间的天数
- String与StringBuffer的区别
- spring boot Websocket