Ricardo Vieira

Results 297 issues of Ricardo Vieira

### Description It's useful to know when `arange` or `eye` is in a graph, but if these have constant inputs they will be constant folded, and then we would need...

graph rewriting

I will sort out Shared Variables in a separate PR

enhancement
jax
backend compatibility
random variables
sparse variables

## Description I can imagine this being very powerful for debugging or reasoning about rewrites? ```python import pytensor import pytensor.tensor as pt from pytensor.graph.fg import FunctionGraph from pytensor.graph.features import FullHistory...

enhancement
graph rewriting

## Description Small changes, just to get a feel for it.

docs

We have some other rewrites that will push Alloc below Elemwise, so that we don't compute on repeated inputs, but this won't happen if there's an expand_dims in the way....

needs info
graph rewriting
performance

### Description Reshape has only two inputs, x, and a vector of the output shape. This is cumbersome because many times we want to analyze the individual dimensions to rewrite...

maintenance
Op implementation

### Description We could add a method to the Ops, similar to infer_shape that infers the number of flops and memory usage of an Op given its inputs and input...

enhancement
performance

### Description For discoverability. We can raise `NotImplementedError` by default. Or create a subclass of ShapedOp?

### Description Failed in https://github.com/pymc-devs/pytensor/actions/runs/9712864428/job/26808478897?pr=871#step:6:3845 May need a seed?

tests

### Description We are defaulting to the numpyro implementation when that's installed, but the numpyro implementation is incredibly wasteful for large N, as it consists of doing n Categorical draws...

enhancement
jax
random variables