Open just-walk opened 2 months ago
Can you paste a full runnable code snippet that produces this error?
This is with 0.11.20, BTW, since I ran into another issue on 0.12.
using Enzyme
using FiniteDifferences
function sum_coeffs(lbound, ubound, diffOrder)
fdm = FiniteDifferenceMethod(lbound:ubound, diffOrder)
return sum(fdm.coefs)
end
@show autodiff(ReverseWithPrimal, sum_coeffs, Active, Const(1), Const(3), Const(2))
All arguments have activity Const
here because, in my use, the inputs to this method are all derived from parameters marked as Const
.
This now no longer fails on the \ rule, but on the constructor of a BigFloat used within FiniteDifferences
(If I need to post this over at FiniteDifferences.jl, then let me know.)
This is the result from a (intermediate) function call
where
lbound
,ubound
, anddiffOrder
areInt
:Is this an indication of a bug, or that this method needs a custom rule in FiniteDifferences.jl?