File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,15 @@ Base.@kwdef struct AutoSparseReverseDiff <: AbstractSparseReverseMode
222
222
compile:: Bool = false
223
223
end
224
224
225
+ """
226
+ AutoDiffractor
227
+
228
+ Chooses [Diffractor.jl](https://github.com/JuliaDiff/Diffractor.jl).
229
+ """
230
+ struct AutoDiffractor <: AbstractADType end
231
+
225
232
export AutoChainRules,
233
+ AutoDiffractor,
226
234
AutoFiniteDiff,
227
235
AutoFiniteDifferences,
228
236
AutoForwardDiff,
Original file line number Diff line number Diff line change @@ -91,4 +91,8 @@ struct CustomTag end
91
91
adtype = AutoEnzyme (; mode = Val (:Reverse ))
92
92
@test adtype isa ADTypes. AbstractADType
93
93
@test adtype isa AutoEnzyme{Val{:Reverse }}
94
+
95
+ adtype = AutoDiffractor ()
96
+ @test adtype isa ADTypes. AbstractADType
97
+ @test adtype isa AutoDiffractor
94
98
end
You can’t perform that action at this time.
0 commit comments