Skip to content
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

Split aesara.tensor.rewriting.basic rewrites by their aesara.tensor modules #1139

Merged

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented Aug 22, 2022

This PR moves rewrite code corresponding to distinct aesara.tensor modules into their own modules (e.g. shape rewrites are moved to aesara.tensor.rewriting.shape, etc.)

These changes should prevent us from creating a giant aesara.tensor.rewriting.basic file as we expand rewrite coverage for shapes, Elemwise/CAReduce fusing, and so on. It should also make it much easier for people to see and/or find all the relevant rewrites for a given subject.

@brandonwillard brandonwillard self-assigned this Aug 22, 2022
@brandonwillard brandonwillard added graph rewriting refactor This issue involves refactoring enhancement New feature or request labels Aug 22, 2022
@brandonwillard brandonwillard force-pushed the refactor-rewriting-basic branch 6 times, most recently from 937dcf5 to 6370b4e Compare August 22, 2022 17:27
Copy link
Contributor

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine

@rlouf
Copy link
Member

rlouf commented Aug 24, 2022

Refactoring much appreciated, it makes the codebase breathe a little more.

@brandonwillard brandonwillard merged commit 63f5253 into aesara-devs:main Aug 24, 2022
@brandonwillard brandonwillard deleted the refactor-rewriting-basic branch August 24, 2022 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request graph rewriting refactor This issue involves refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants