pymc-devs / pytensor

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

Home Page:https://pytensor.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rid of pre-defined inplace Elemwise Operators?

ricardoV94 opened this issue · comments

Description

I don't think we're using this at all? The Elemwise InplaceOptimizer creates its own Ops (as it should), doesn't reuse these.

https://github.com/ricardoV94/pytensor/blob/f951743d9d5d68095416b5989d7889bac1779586/pytensor/tensor/inplace.py

They may be used for the Elemwise Inplace tests... but they could be created on demand by the tests. And I'm not sure it even makes sense to test inplace for every Op? It's not like anything changes for different Ops?