We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5fb081 commit 92aafe1Copy full SHA for 92aafe1
1 file changed
DifferentiationInterface/src/utils/check.jl
@@ -16,9 +16,17 @@ function check_available(backend::MixedMode)
16
check_available(reverse_backend(backend))
17
end
18
19
+@static if isdefined(ADTypes, :NoAutoDiff)
20
+ check_available(::ADTypes.NoAutoDiff) = throw(ADTypes.NoAutoDiffAvailable())
21
+end
22
+
23
"""
24
check_inplace(backend)
25
26
Check whether `backend` supports differentiation of in-place functions and return a `Bool`.
27
28
check_inplace(backend::AbstractADType) = Bool(inplace_support(backend))
29
30
31
+ check_inplace(::ADTypes.NoAutoDiff) = throw(ADTypes.NoAutoDiffAvailable())
32
0 commit comments