Tutorial#

Let us start an interactive session (e.g. with python or ipython) and import PyTensor.

>>> from pytensor import *

Several of the symbols you will need to use are in the tensor subpackage of PyTensor. Let us import that subpackage under a handy name like at (the tutorials will frequently use this convention).

>>> import pytensor.tensor as pt

If that succeeded you are ready for the tutorial, otherwise check your installation (see Installing PyTensor).

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#

Advanced#

Advanced configuration and debugging#

Further reading#