-
Notifications
You must be signed in to change notification settings - Fork 223
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
Fix type of initial_scale in reset_search_direction! #1089
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1089 +/- ##
=======================================
Coverage 85.26% 85.26%
=======================================
Files 45 45
Lines 3502 3502
=======================================
Hits 2986 2986
Misses 516 516 ☔ View full report in Codecov by Sentry. |
I think it might be more consistent to apply the pattern in
Generally, isn't the error caused by an incorrectly typed
|
I agree |
Sure, but usually I think it should be enough to supply x0 as the type you want even if there might be some cases where it's harder to prepare for that.. but I think we can apply the "correct" pattern here for the user.. |
@odow would you like to update this PR? Or would you rather not do more here. I think @devmotion 's assessment is correct here. |
f18e254
to
765ffc2
Compare
Updated. I don't have a test or a reproducible example; I was just following the stack trace from the discourse post. |
okay, thanks. Yes it can be a bit hard here to have a user-facing example (from the top level call to optimize) because you need it to hit a reset... I will have a look again, maybe I can write a test than artificially calls internals as if it had iterated and had to reset |
x-ref https://discourse.julialang.org/t/error-loaderror-methoderror-no-method-matching-init-identity-matrix-componentvector-float32-vector-float32-tuple-axis-float64/112211
I don't really know the implications of this, but I assume this is the fix.