theano dimshuffle 实例
来源:互联网 发布:数据存储解决方案 nas 编辑:程序博客网 时间:2024/06/05 20:43
import theanoimport numpy as npones = theano.shared(np.float32([[1,2,3],[4,5,6],[7,8,9]]))temp = ones.dimshuffle([0,1,'x'])print(temp.eval())temp = ones.dimshuffle([0,1])print(temp.eval())temp = ones.dimshuffle([1,0])print(temp.eval())
print结果
[[[ 1.]
[ 2.]
[ 3.]]
[[ 4.]
[ 5.]
[ 6.]]
[[ 7.]
[ 8.]
[ 9.]]]
[[ 1. 2. 3.]
[ 4. 5. 6.]
[ 7. 8. 9.]]
[[ 1. 4. 7.]
[ 2. 5. 8.]
[ 3. 6. 9.]]
阅读全文
0 0
- theano dimshuffle 实例
- theano dimshuffle
- theano dimshuffle的使用说明
- theano dimshuffle的使用说明
- Theano dimshuffle函数用法
- Theano学习笔记01--Dimshuffle()函数
- theano stack 实例
- theano concatenate 实例
- theano scan 实例
- theano scan 实例
- theano concatenate 实例
- theano T.arange 实例
- theano T.col 实例
- theano scan arange shape 实例
- Theano(5):Logistic Regression实例
- theano
- Theano
- theano
- 什么是渲染目标(render target)&& 渲染到纹理(Render To Texture, RTT)详解
- KMP算法
- 凸包问题的五种解法
- java栈实现 倒序打印链表
- 使用STM32CubeMX进行STM32F429 LCD编程<一> 全局配置
- theano dimshuffle 实例
- 【Noip2014】无线网络发射器选址
- 《视觉SLAM十四讲》学习笔记(一)
- 属于我的github组件仓库
- Picasso处理图片,按照设置的宽度比例来缩放
- java基础学习总结——equals方法
- IntelliJ IDEA 显示行号方法
- 任意长度字符串转化为16位定长的数(类似加密)
- Python|计蒜客——最后一个单词的长度