tensor – Tensor operations in PyTensor#

PyTensor’s strength is in expressing symbolic calculations involving tensors.

PyTensor tries to emulate the numpy interface as much as possible in the tensor module. This means that once TensorVariables are created, it should be possibly to define symbolic expressions using calls that look just like numpy calls, such as pt.exp(x).transpose(0, 1)[:, None]

Created: Oct 23, 2025 | Last updated: Oct 23, 2025