We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a4af7 commit 26431a3Copy full SHA for 26431a3
src/methods.jl
@@ -371,9 +371,9 @@ function estimate_step(
371
step, acc = withUnit.(
372
(
373
unit(x),
374
- unit(f |> eltype) / unit(x) ^ Q
+ unit(first(f(x))) / unit(x) ^ Q
375
),
376
- if ∇f_magnitude == withUnit(∇f_magnitude,0.0) || f_magnitude == withUnit(unit(f_magnitude), 0.0)
+ if ∇f_magnitude == withUnit(unit(∇f_magnitude),0.0) || f_magnitude == withUnit(unit(f_magnitude), 0.0)
377
_compute_step_acc_default(m, x)
378
else
379
_compute_step_acc(m, ∇f_magnitude, eps(f_magnitude))
0 commit comments