Skip to content

Commit

Permalink
Workaround QuadGK and Zygote error
Browse files Browse the repository at this point in the history
  • Loading branch information
FrameConsult authored and sschlenkrich committed Sep 2, 2024
1 parent 5c6102e commit d7d388e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chainrules/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ ChainRulesCore.@non_differentiable parameter_grid(m::MarkovFutureModel)
ChainRulesCore.@non_differentiable parameter_grid(m::CompositeModel)
ChainRulesCore.@non_differentiable parameter_grid(m::GaussianHjmModel)
ChainRulesCore.@non_differentiable parameter_grid(models::Union{AbstractVector, Tuple})

# avoid error from QuadGK.jl v2.11 with try/catch
# See https://github.com/JuliaMath/QuadGK.jl/issues/117
ChainRulesCore.@non_differentiable QuadGK.cachedrule(Any...)

0 comments on commit d7d388e

Please sign in to comment.