-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm function.replace, add deep and shallow variants
This patch removes the general function.replace decorator and replaces it with the specialized _util.deep_replace_property (used for simplified and optimized_for_numpy) and _util.shallow_replace (used for replace_arguments, _deep_flatten_constants and _combine_loop_concatenates). The differences between the two constructs are as follows: @_util.deep_replace_property - property - intermediate values cached in object attribute - depth first - recursive @_util.shallow_replace - function - intermediate values cached only during replacement - depth last - non recursive
- Loading branch information
Gertjan van Zwieten
committed
Mar 20, 2024
1 parent
43b9439
commit 5d6cbca
Showing
3 changed files
with
236 additions
and
163 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.