-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Make Feature
s less stateful
#832
Merged
brandonwillard
merged 12 commits into
aesara-devs:main
from
brandonwillard:make-features-less-stateful
Mar 9, 2023
Merged
Make Feature
s less stateful
#832
brandonwillard
merged 12 commits into
aesara-devs:main
from
brandonwillard:make-features-less-stateful
Mar 9, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brandonwillard
force-pushed
the
make-features-less-stateful
branch
from
February 21, 2022 23:45
320ad0a
to
e32dc33
Compare
brandonwillard
force-pushed
the
make-features-less-stateful
branch
from
February 22, 2022 00:44
e32dc33
to
c53e48e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #832 +/- ##
==========================================
+ Coverage 74.87% 75.00% +0.13%
==========================================
Files 194 194
Lines 50123 50072 -51
Branches 12098 12095 -3
==========================================
+ Hits 37530 37559 +29
+ Misses 10266 10189 -77
+ Partials 2327 2324 -3
|
ricardoV94
reviewed
Feb 22, 2022
brandonwillard
force-pushed
the
make-features-less-stateful
branch
from
March 5, 2023 04:41
0d25040
to
c2e041a
Compare
These changes make `History` less stateful--among other things.
brandonwillard
force-pushed
the
make-features-less-stateful
branch
from
March 8, 2023 00:51
c2e041a
to
d54ee84
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves most
Feature
s' state (e.g. variables/collections used to track the state of aFunctionGraph
) to theFunctionGraph
upon which theFeature
s are operating, instead of dedicating oneFeature
and its state to a singleFunctionGraph
—as is currently done. With these changes, a few complications surroundingFunctionGraph
pickle
ing and the general dynamic addition/attachment ofFeature
s are more easily addressed and/or avoided altogether.Some more details:
Feature
s aren't truly stateful in a way that makes the relevant state specific to theFeature
as much as theFunctionGraph
. In other words, mostFeature
s really only care about the state of theFunctionGraph
s on which they operate, so, if that state is held by theFunctionGraph
s themselves,Feature
s can be more versatile.Feature
s from oneFunctionGraph
to another (e.g. as is attempted inFunctionGraph.clone_get_equiv
), because manyFeature
s are unnecessarily dedicated to a singleFunctionGraph
.