Description
Description
This is in MetaType, but AFAICT only ops ever have props
pytensor/pytensor/graph/utils.py
Lines 193 to 234 in 17748b7
Generating them dynamically like this means linters / mypy don't believe in op._props()
or op._props_dict()
. I don't know why this has to be implemented as methods in the MetaClass instead of just in the Op baseclass. Would be great if someone gave a try at it. It also means we could probably get rid of the whole MetaType class, since the only other thing is a string convenience, which definitely need not be defined there.
May also be worth investigating if we can use frozen dataclasses
for Ops
and automate the props logic (see aesara discussion, but that needs not be done together with addressing the main issue here.