Skip to content

Disable linearity detection for subexpression if no hessian #2738

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

Merged
merged 5 commits into from
Apr 27, 2025

Conversation

blegat
Copy link
Member

@blegat blegat commented Apr 25, 2025

This was done for _FunctionStorage but not here

Copy link
Member

@odow odow left a comment

Choose a reason for hiding this comment

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

So this is okay. But more generally, we should consider:

  • Is it worth making code changes for edge cases?

This requires Hessians to be disabled AND the model to have many subexpressions AND the linearity check to take a non-trivial amount of time.

I'd be in favor of fewer special cases, even if it meant a small decrease in performance.

@odow odow merged commit cd7248f into master Apr 27, 2025
30 of 31 checks passed
@odow odow deleted the bl/subexpr_lin branch April 27, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants