Tutorial¶
Let us start an interactive session (e.g. with python
or ipython
) and import Aesara.
>>> from aesara import *
Several of the symbols you will need to use are in the tensor
subpackage
of Aesara. Let us import that subpackage under a handy name like
at
(the tutorials will frequently use this convention).
>>> import aesara.tensor as at
If that succeeded you are ready for the tutorial, otherwise check your installation (see Installing Aesara).
Throughout the tutorial, bear in mind that there is a Glossary as well as index and modules links in the upper-right corner of each page to help you out.
Basics¶
- Baby Steps - Algebra
- More Examples
- Derivatives in Aesara
- Conditions
- Loop
- How Shape Information is Handled by Aesara
- Broadcasting
Advanced¶
Advanced configuration and debugging¶
- Configuration Settings and Compiling Modes
- Printing/Drawing Aesara graphs
- Debugging Aesara: FAQ and Troubleshooting
- Isolating the Problem/Testing Aesara 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?”
- “How do I step through a compiled function?”
- How to Use
pdb
- Dumping a Function to help debug
- Breakpoint during Aesara function execution
- Dealing with NaNs
- Profiling Aesara function