-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Change use of "optimize" to "rewrite" #1054
Change use of "optimize" to "rewrite" #1054
Conversation
ff1bdcb
to
658c844
Compare
Codecov Report
@@ Coverage Diff @@
## main #1054 +/- ##
==========================================
- Coverage 79.28% 79.25% -0.04%
==========================================
Files 151 159 +8
Lines 47992 48097 +105
Branches 10913 10934 +21
==========================================
+ Hits 38052 38117 +65
- Misses 7437 7469 +32
- Partials 2503 2511 +8
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the new names sound much more intuitive now.
Yeah, I was going for something systematic and explanatory, because even I have trouble remembering (by name) what these things do. |
7994934
to
d50f7dc
Compare
d50f7dc
to
e5e4edf
Compare
- `aesara.tensor.basic_opt` has been changed to `aesara.tensor.rewriting.basic` - `aesara.tensor.math_opt` has been changed to `aesara.tensor.rewriting.math` - `aesara.tensor.subtensor_opt` has been changed to `aesara.tensor.rewriting.subtensor` - `aesara.tensor.opt_uncanonicalize` has been changed to `aesara.tensor.rewriting.uncanonicalize` The tests associated with each module have been updated accordingly.
4bf92b5
to
539addb
Compare
@aesara-devs/aesara, all right, I'm going to merge this, which means that we'll need to update the other |
👍 This is going to be Aesara 2.8.0 then? |
Yes, definitely. |
It seems this makes some deprecated names unavailable from the packages where they were previously available e.g.:
That leads to a test failure in SymPy CI due to this line: Is it always safe to use |
It's not safe for Theano and only up to 430d068 in Aesara. |
@oscarbenjamin, we can probably add deprecation support for |
This PR introduces a lot of refactoring that changes object names and comments to use the term "rewrite" instead of "optimize" when appropriate.
Also, modules with the name
opt
—or a prefix/suffix ofopt
—have either been renamed torewriting
or moved to a sub-package with that name.