教程¶
让我们开始一个交互式会话(例如使用python
或ipython
)并导入Theano。
>>> from theano import *
你需要使用Theano的tensor
子包中的几个符号。让我们以一个方便的名字,例如T
导入这个子包(教程将经常使用这个约定)。
>>> import theano.tensor as T
如果成功,那么你已为完成本教程准备好,否则请检查你的安装(请参阅安装Theano)。
在本教程中,请记住,每个页面右上角都有词汇表以及索引和模块链接帮助你。
高级¶
- Sparse
- Using the GPU
- Using multiple GPUs
- Convolution arithmetic tutorial
高级配置和调试¶
- Configuration Settings and Compiling Modes
- Printing/Drawing Theano graphs
- Debugging Theano: FAQ and Troubleshooting
- Isolating the Problem/Testing Theano Compiler
- Interpreting Error Messages
- Using Test Values
- “How do I Print an Intermediate Value in a Function?”
- “How do I Print a Graph?” (before or after compilation)
- “The Function I Compiled is Too Slow, what’s up?”
- “Why does my GPU function seem to be slow?”
- “How do I Step through a Compiled Function?”
- How to Use pdb
- Dumping a Function to help debug
- Breakpoint during Theano function execution
- Dealing with NaNs
- Profiling Theano function