pytensor icon indicating copy to clipboard operation
pytensor copied to clipboard

PyTensor allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays.

Results 395 pytensor issues
Sort by recently updated
recently updated
newest added

### Description - [ ] Implement some basic docs for scalar - [ ] Include link/compile inside compile section - [ ] Move d3viz and include ipython inside printing section...

docs
beginner friendly

### Before ```python index = array(['2017-06-02T00:00:00.000000000', '2017-06-03T00:00:00.000000000', '2017-06-04T00:00:00.000000000', ..., '2021-06-28T00:00:00.000000000', '2021-06-29T00:00:00.000000000', '2021-06-30T00:00:00.000000000'], dtype='datetime64[ns]') pt.as_tensor(index) --------------------------------------------------------------------------- KeyError Traceback (most recent call last) File .venv/lib/python3.10/site-packages/pytensor/tensor/type.py:287, in TensorType.dtype_specs(self) 286 try: --> 287 return...

feature request

### Description I would be nice for debugging/benchmarking to be allowed to do `function(inputs, outputs, mode='python')`. This would use the `PerformLinker()` with default rewrites (excluding things like `blas_opt` that introduces...

enhancement
help wanted
beginner friendly
compilation

### Description jax mode is missing a dispatch for the `NonZero` `Op`. There's a `jnp.nonzero`, so it should be easy to do.

help wanted
beginner friendly
jax
backend compatibility

### Description This make working with these Ops much harder because we always have to check whether the axis is constant (and we can reason about the operation) or not...

Op implementation
refactor

### Description This make it hard to import even basic stuff, since some modules want to import stuff defined in the `__init__`, while `__init__` is importing everything else.

### Description Checking https://docs.xarray.dev/en/stable/api.html#top-level-functions The following (unchecked) top level functions are missing. I filtered out ones that are not relevant for PyTensor - [x] broadcast - [x] concat - [...

xtensor

### Description As the title suggests, graphs with `IfElse` will fail at runtime if you try to vectorize them. The error raised reminds me of #1425 ```py import pytensor.tensor as...

bug
vectorization

### Description Trying to compile a graph vectorized with `vectorize_graph` that contains an `OpFromGraph` into numba mode results in an error: ```py X = pt.dmatrix("X", shape=(None, None)) X_batched = pt.tensor("X",...

bug
numba
vectorization
OpFromGraph

### Description When compiling a vectorized graph with an `OpFromGraph` into numba mode, shape inference fails if the shape of the output depends on blockwise operations. Example: ```py X =...

bug
help wanted
numba
shape inference
vectorization