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
Finite differencing near discontinualities is hard.
I would hope we do a bit better that that though.
Probably though the right solution is to do forward_fdm for ciel and backward_fdm for floor
and the appropriate one depending on which side of 0.5 you are on for round
(You can pass the fdm method into the test_X functions from ChainRulesTestUtils as a kwarg)
julia>forward_fdm(5, 1)(ceil, 0.2) # do this-2.220446049250313e-15
julia>backward_fdm(5, 1)(ceil, 0.2) # don't do this-19.166666666666664
this is probably edge case but:
JuliaDiff/ChainRules.jl#277
The text was updated successfully, but these errors were encountered: