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

compiler: Fix handling of redundant derivatives #2284

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b7016f2) 86.84% compared to head (8f50425) 86.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2284      +/-   ##
==========================================
+ Coverage   86.84%   86.85%   +0.01%     
==========================================
  Files         229      229              
  Lines       42548    42579      +31     
  Branches     7893     7900       +7     
==========================================
+ Hits        36951    36984      +33     
+ Misses       4940     4939       -1     
+ Partials      657      656       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

def _(expr, estimate):
flops, _ = _estimate_cost(expr.expr, estimate)
@dont_count_if_seen
def _(expr, estimate, seen):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be also done for EvalDerivative to catch prematurely evaluated derivs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unnecessary
EvalDerivatives are Adds so they will be treated as such. EvalDerivatives are lower-level, more rudimentary objects, so it's OK to be treated as such

@FabioLuporini FabioLuporini merged commit 063d07d into master Dec 19, 2023
31 checks passed
@FabioLuporini FabioLuporini deleted the fix-estimate-cost branch December 19, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants