pymc-devs / pytensor

PyTensor allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays.
https://pytensor.readthedocs.io
Other
338 stars 100 forks source link

Reorganize `tensor.basic.py` and `tensor.math.py`. #912

Open ricardoV94 opened 2 months ago

ricardoV94 commented 2 months ago

Description

These two are doing way too much. We should probably split more along the lines of how we listed #821 if not more fine-grained.

basic and math are just too big and vague. Also the rewrites should be restructured a bit to reflect the changes, although it's sometimes tricky when you are rewriting Elemwise + Reduce or Elemwise + Alloc, Probably we can put it in the non-elemwise, since that's more specific

ricardoV94 commented 2 months ago

Also extra_ops is a mess and includes many things that make more sense elsewhere

poojatalele commented 1 month ago

I would like to work on this, kindly assign. @ricardoV94