Skip to content

Deprecate / rewrite esoteric Ops #1210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ricardoV94 opened this issue Feb 14, 2025 · 1 comment
Open

Deprecate / rewrite esoteric Ops #1210

ricardoV94 opened this issue Feb 14, 2025 · 1 comment

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Feb 14, 2025

Description

Make our codebase more leightweight by removing:

  • pytensor.tensor.basic.PermuteRowElements
  • pytensor.tensor.io.LoadFromDisk

Replace by symbolic equivalent:

@ricardoV94
Copy link
Member Author

Here is the code to get a list of all Ops (with some base classes in the mix):

from pytensor.graph.op import Op

def get_all_subclasses(cls):
    all_subclasses = []

    for subclass in cls.__subclasses__():
        all_subclasses.append(subclass)
        all_subclasses.extend(get_all_subclasses(subclass))

    return all_subclasses

for op in sorted(set(get_all_subclasses(Op)), key=str):
    print(op)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant