File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DifferentiationInterfaceTrackerExt = "Tracker"
5656DifferentiationInterfaceZygoteExt = [" Zygote" , " ForwardDiff" ]
5757
5858[compat ]
59- ADTypes = " 1.17 .0"
59+ ADTypes = " 1.18 .0"
6060ChainRulesCore = " 1.23.0"
6161DiffResults = " 1.1.0"
6262Diffractor = " =0.2.6"
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ function check_available(backend::MixedMode)
1616 check_available (reverse_backend (backend))
1717end
1818
19- @static if isdefined (ADTypes, :NoAutoDiff )
20- check_available (:: ADTypes.NoAutoDiff ) = throw (ADTypes. NoAutoDiffSelectedError ())
21- end
19+ check_available (:: ADTypes.NoAutoDiff ) = throw (ADTypes. NoAutoDiffSelectedError ())
2220
2321"""
2422 check_inplace(backend)
@@ -27,6 +25,4 @@ Check whether `backend` supports differentiation of in-place functions and retur
2725"""
2826check_inplace (backend:: AbstractADType ) = Bool (inplace_support (backend))
2927
30- @static if isdefined (ADTypes, :NoAutoDiff )
31- check_inplace (:: ADTypes.NoAutoDiff ) = throw (ADTypes. NoAutoDiffSelectedError ())
32- end
28+ check_inplace (:: ADTypes.NoAutoDiff ) = throw (ADTypes. NoAutoDiffSelectedError ())
Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ using Test
1010
1111LOGGING = get (ENV , " CI" , " false" ) == " false"
1212
13- if isdefined (ADTypes, :NoAutoDiff )
14- @test_throws NoAutoDiffSelectedError check_available (NoAutoDiff ())
15- @test_throws NoAutoDiffSelectedError check_inplace (NoAutoDiff ())
16- end
13+ @test_throws NoAutoDiffSelectedError check_available (NoAutoDiff ())
14+ @test_throws NoAutoDiffSelectedError check_inplace (NoAutoDiff ())
1715
1816zero_backends = [AutoZeroForward (), AutoZeroReverse ()]
1917
You can’t perform that action at this time.
0 commit comments