Skip to content

Commit 51aacab

Browse files
committed
Typo
1 parent 92f984d commit 51aacab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/helpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function get_concrete_reverse_ad(
6161
if !isa(ADTypes.mode(autodiff), ADTypes.ReverseMode) && check_reverse_mode
6262
@warn "$(autodiff)::$(typeof(autodiff)) is not a `ReverseMode`. Use with caution." maxlog=1
6363
end
64-
if autodiff <: Union{AutoZygote, AutoSparse{<:AutoZygote}} && isinplace(prob)
64+
if autodiff isa Union{AutoZygote, AutoSparse{<:AutoZygote}} && isinplace(prob)
6565
@warn "Attempting to use Zygote.jl for inplace problems. Switching to FiniteDiff. \
6666
Sparsity even if present will be ignored for correctness purposes. Set \
6767
the reverse ad option to `nothing` to automatically select the best option \

0 commit comments

Comments
 (0)