You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out Zygote and was testing how it plays with Measurements, see also a cross post in Zygote's github (FluxML/Zygote.jl#1320). I have encountered a problem when I try to take a second derivative:
using Zygote
using Measurements
(√)''(2 ± 0.1)
This throws an exception:
MethodError: no method matching Float64(::Measurement{Float64})
At the same time (√)''(2) works just fine. I can fix this by defining
I was trying out Zygote and was testing how it plays with Measurements, see also a cross post in Zygote's github (FluxML/Zygote.jl#1320). I have encountered a problem when I try to take a second derivative:
This throws an exception:
MethodError: no method matching Float64(::Measurement{Float64})
At the same time
(√)''(2)
works just fine. I can fix this by definingFloat64(x::Measurement{Float64}) = Measurements.value(x)
I know little about Zygote and Measurments and I cannot tell what is going on and if this needs fixing and on which side.
The text was updated successfully, but these errors were encountered: