tensorflow中tf.nn.conv2d_transpose的应用
来源:互联网 发布:大淘客cms加淘口令 编辑:程序博客网 时间:2024/05/20 05:29
tf.nn.conv2d_transpose(x, w, output_shape, strides, padding='SAME'):推荐使用x的数据格式为默认格式[batch, height, width, in_channels]。w是滤波器,输入分格式为[height, width, output_channels, in_channels]。output_shape就是输出数据的格式[batch, height, width, in_channels],strides就是滑动的步长。[1,h_l, w_l,1]。输出数据格式的height等于h_l乘以输入的height。另外一个参数也是一样的。
例如:
import tensorflow as tfx = tf.ones([10,4,4,5])w = tf.ones([2,2,2,5])y = tf.nn.conv2d_transpose(x, w, output_shape=[10,12,12,2], strides=[1,3,3,1], padding='SAME')with tf.Session() as sess: sess.run(tf.global_variables_initializer()) print(sess.run(y))
阅读全文
0 0
- tensorflow中tf.nn.conv2d_transpose的应用
- 【TensorFlow】tf.nn.conv2d_transpose是怎样实现反卷积的?
- 对比 tf.layers.conv2d_transpose和tf.nn.conv2d_transpose区别
- TensorFlow中 tf.nn.embedding_lookup
- tf.nn.conv2d_transpose 实例 及 解析
- 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法
- 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法
- TensorFlow 介绍 tf.nn.softmax_cross_entropy_with_logits 的用法
- TensorFlow学习---tf.nn.softmax_cross_entropy_with_logits的用法
- 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法
- 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法
- 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法
- tensorflow中embedding_lookup, tf.gather以及tf.nn.embedding_lookup_sparse的理解
- TensorFlow tf.nn.conv2d
- tensorflow 的 Batch Normalization 实现(tf.nn.moments、tf.nn.batch_normalization)
- TensorFlow学习笔记之tf.nn.softmax()与tf.nn.softmax_cross_entropy_with_logits的用法
- TensorFlow-tf.nn.conv2d 函数
- Tensorflow系列:tf.nn.conv2d
- 【HDU5628】Clarke and math-狄利克雷卷积+快速幂
- PLSQL数据导入导出问题解决(空表、大字段表、表空间错误等)
- Hibernate crud操作
- 腾讯2012面试
- 13.退出应用程序(递归和栈退出)
- tensorflow中tf.nn.conv2d_transpose的应用
- Counting Bits
- Incorrect response id (request id: 1, response id: )
- nginx使用非80端口时url带端口号的解决办法
- mysql学习-基本语句
- Centos安装redis时遇到You need tcl 8.5 or newer in order to run the Redis test
- MacBook运行C++操作方法(不用安装任何插件)
- pwnable学习笔记-fsb
- openvpn server 制作(笔记)