We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51aacab commit 28bb36bCopy full SHA for 28bb36b
src/internal/helpers.jl
@@ -32,9 +32,8 @@ end
32
# AutoDiff Selection Functions
33
function get_concrete_forward_ad(
34
autodiff::ADTypes.AbstractADType, prob, sp::Val{test_sparse} = True,
35
- args...; check_reverse_mode = true, kwargs...) where {test_sparse}
36
- # TODO: shouldn't this be `check_forward_mode`?
37
- if !isa(ADTypes.mode(autodiff), ADTypes.ForwardMode) && check_reverse_mode
+ args...; check_forward_mode = true, kwargs...) where {test_sparse}
+ if !isa(ADTypes.mode(autodiff), ADTypes.ForwardMode) && check_forward_mode
38
@warn "$(autodiff)::$(typeof(autodiff)) is not a `ForwardMode`. Use with caution." maxlog=1
39
end
40
return autodiff
0 commit comments