tf4. Placeholder
来源:互联网 发布:办公平台软件免费 编辑:程序博客网 时间:2024/06/18 09:59
import sysprint(sys.version)'''3.5.3 |Continuum Analytics, Inc.| (default, May 15 2017, 10:43:23) [MSC v.1900 64 bit (AMD64)]'''import tensorflow as tf#在 Tensorflow 中需要定义 placeholder 的 type ,一般为 float32 形式input1 = tf.placeholder(tf.float32)input2 = tf.placeholder(tf.float32)# mul = multiply 是将input1和input2 做乘法运算,并输出为 outputouput = tf.multiply(input1, input2)with tf.Session() as sess: print(sess.run(ouput, feed_dict={input1: [7.], input2: [2.]}))# [ 14.]
阅读全文
0 0
- tf4. Placeholder
- placeholder
- placeholder
- Placeholder
- placeholder
- placeholder
- placeholder
- placeholder
- 容器PlaceHolder
- placeholder控件
- PlaceHolder入门
- PlaceHolder 作用
- PlaceHolder 类
- PlaceHolder控件
- 关于placeholder();
- html placeholder
- UItextView Placeholder
- 兼容placeholder
- 控制台应用程序关闭事件
- 今日头条校招题目——贪心+排序思想
- Robots协议
- tf3. Variable
- 国税总局发票助手二维码生成的CRC计算
- tf4. Placeholder
- Ubuntu-gdb调试
- tf5. 构建基础网络
- tf6. Tensorboard 图
- Spring AOP代理详细介绍
- 【Maven入门】maven常用命令
- mysql表使用python脚本建立数据表包含多个分区
- tf7. tensorboard 参数变化展示
- tf8.mnist分类学习