tensorflow + tf.transposs
来源:互联网 发布:苹果离线翻译软件 编辑:程序博客网 时间:2024/05/17 22:22
今天使用tensorflow遇到一个函数 tf.transpose(X,perm = [0,2,1])
这个函数就是将tensor的对应的维数进行置换,这里发现几点,
1.tensorflow 里面的 tensor是先从高维向低维算起的
比如:'x' is [[[1 2 3]
# [4 5 6]]
# [[7 8 9]
# [10 11 12]]]
x的维数就是【2,2,3】
而perm的意思就是将tensor对应的不同的维数之间变换
比如perm = 【2,1,0】,则原tensor = 【3,2,2】,全部倒过来
perm = 【0,2,1】 , 则原tensor = 【2,3,2】, 最后两维置换
tf.transpose(b, perm=[0, 2, 1]) ==>
[[[1 4]
[2 5]
[3 6]]
[[7 10]
[8 11]
[9 12]]]
0 0
- tensorflow + tf.transposs
- Tensorflow:tf.train.SyncReplicasOptimizer
- Tensorflow系列:tf.random_normal
- tensorflow tf.concat操作
- 【Tensorflow】tf.placeholder函数
- 【Tensorflow】tf.reshape 函数
- 【Tensorflow】tf.argmax函数
- TensorFlow. tf.reduce_mean
- 【TensorFlow】tf.scatter_update()
- tensorflow: tf.reshape探究
- tensorflow: tf.assign探究
- tensorflow tf.tile 实例
- 【TensorFlow】tf.concat
- tensorflow: tf.add_to_collection 探究
- TensorFlow tf.nn.conv2d
- tensorflow/tf.set_random_seed()
- Tensorflow tf.placeholder函数
- tensorflow tf.pad解析
- mqtt通过配置文件启动
- 流行输入法使用小记
- java基础语法
- python的requests在网络请求中添加cookies参数
- CentOS 6.5使用Corosync + pacemaker实现httpd服务的高可用
- tensorflow + tf.transposs
- Java之implements
- Netty_使用http协议,post&get方式
- LightOJ 1076 Get the Containers
- 【Raspberry Pi 3试用体验】+wifi的一些问题
- Miui Note源码解析
- Shell中整数比较
- jdk中密钥和证书管理工具keytool常用命令详解
- 解压版MySQL安装图解