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 92f984d commit 51aacabCopy full SHA for 51aacab
src/internal/helpers.jl
@@ -61,7 +61,7 @@ function get_concrete_reverse_ad(
61
if !isa(ADTypes.mode(autodiff), ADTypes.ReverseMode) && check_reverse_mode
62
@warn "$(autodiff)::$(typeof(autodiff)) is not a `ReverseMode`. Use with caution." maxlog=1
63
end
64
- if autodiff <: Union{AutoZygote, AutoSparse{<:AutoZygote}} && isinplace(prob)
+ if autodiff isa Union{AutoZygote, AutoSparse{<:AutoZygote}} && isinplace(prob)
65
@warn "Attempting to use Zygote.jl for inplace problems. Switching to FiniteDiff. \
66
Sparsity even if present will be ignored for correctness purposes. Set \
67
the reverse ad option to `nothing` to automatically select the best option \
0 commit comments