theano scan 实例
来源:互联网 发布:python 内存 结构 编辑:程序博客网 时间:2024/05/21 06:12
import theanoimport numpy as npones1 = theano.shared(np.float32([[1,2,3],[4,5,6],[7,8,9]]))ones2 = theano.shared(np.float32([[9,8,7],[6,5,4],[3,2,1]]))print(ones1.eval())outputs, updates = theano.scan(lambda ones1,ones2 : ones1 + 1, sequences = [ones1,ones2])print(outputs.eval())outputs, updates = theano.scan(lambda ones1,ones2 : ones2 + 1, sequences = [ones1,ones2])print(outputs.eval())
结果:
[[ 1. 2. 3.]
[ 4. 5. 6.]
[ 7. 8. 9.]]
[[ 2. 3. 4.]
[ 5. 6. 7.]
[ 8. 9. 10.]]
[[ 10. 9. 8.]
[ 7. 6. 5.]
[ 4. 3. 2.]]
0 0
- theano scan 实例
- theano scan 实例
- theano scan arange shape 实例
- Theano scan
- theano-scan
- theano.scan
- theano scan 笔记
- Theano---scan函数
- theano的scan函数
- theano - scan - 个人理解
- Theano学习-循环-scan
- Theano(7):Theano循环语句,Scan
- theano.function、theano.scan 参数数据类型问题
- 理解Theano的Scan函数
- 五个例子掌握theano.scan函数
- Theano 中 scan 函数的参数解释
- 深度学习Theano中scan的使用方法
- theano的scan的大概科普文章。。。
- SWD协议研究
- SSL 1887——潜伏者
- Linux下informix安装及数据库迁移
- java 日语全角半角的正则
- java数据结构与算法有人知道吗
- theano scan 实例
- n a^o7 !
- 代码阅读2
- hdu 2815 Mod Tree (扩展BSGS)
- 基于QT的电子相册设计与实现
- 面试常见题之虚函数及底层的实现
- 简单的方式寻址数组中第二大数的方式
- FZU 1752 A^B mod C (快速幂+快乘)
- 深度学习笔记(1)——神经网络(neural network)