From fbcbb8e4264809cf86b4cc3d7be4576309214b4a Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 5 Apr 2025 08:56:36 -0400 Subject: [PATCH 1/2] Skip the exponent function It is a Base function that returns a scalar. https://github.com/SciML/DiffEqBase.jl/blame/master/src/internal_itp.jl#L46 https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/14272335727/job/40008186966?pr=2662#step:6:1251 @oscardssmith --- src/ReverseDiff.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReverseDiff.jl b/src/ReverseDiff.jl index cfb4cb0..0c99f06 100644 --- a/src/ReverseDiff.jl +++ b/src/ReverseDiff.jl @@ -26,7 +26,7 @@ using ChainRulesCore const ARRAY_TYPES = (:AbstractArray, :AbstractVector, :AbstractMatrix, :Array, :Vector, :Matrix) const REAL_TYPES = (:Bool, :Integer, :AbstractIrrational, :Rational, :BigFloat, :BigInt, :AbstractFloat, :Real, :Dual) -const SKIPPED_UNARY_SCALAR_FUNCS = Symbol[:isinf, :isnan, :isfinite, :iseven, :isodd, :isreal, :isinteger] +const SKIPPED_UNARY_SCALAR_FUNCS = Symbol[:isinf, :isnan, :isfinite, :iseven, :isodd, :isreal, :isinteger, :exponent] const SKIPPED_BINARY_SCALAR_FUNCS = Symbol[:isequal, :isless, :<, :>, :(==), :(!=), :(<=), :(>=)] # Some functions with derivatives in DiffRules are not supported From 72fa521cb52ef6f336f9dd995572bc15c277cd20 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 5 Apr 2025 08:57:22 -0400 Subject: [PATCH 2/2] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0d096d9..3a4cdfb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ReverseDiff" uuid = "37e2e3b7-166d-5795-8a7a-e32c996b4267" -version = "1.16.0" +version = "1.16.1" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"