File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ abstract type AbstractSymbolicDifferentiationMode <: AbstractADType end
18
18
abstract type AbstractSparseReverseMode <: AbstractReverseMode end
19
19
abstract type AbstractSparseForwardMode <: AbstractForwardMode end
20
20
abstract type AbstractSparseFiniteDifferences <: AbstractFiniteDifferencesMode end
21
+ abstract type AbstractSparseSymbolicDifferentiationMode < :
22
+ AbstractSymbolicDifferentiationMode end
21
23
22
24
"""
23
25
AutoChainRules{RC}
@@ -233,6 +235,20 @@ Chooses [Diffractor.jl](https://github.com/JuliaDiff/Diffractor.jl).
233
235
"""
234
236
struct AutoDiffractor <: AbstractADType end
235
237
238
+ """
239
+ AutoFastDifferentiation
240
+
241
+ Chooses [FastDifferentiation.jl](https://github.com/brianguenter/FastDifferentiation.jl).
242
+ """
243
+ struct AutoFastDifferentiation <: AbstractSymbolicDifferentiationMode end
244
+
245
+ """
246
+ AutoSparseFastDifferentiation
247
+
248
+ Chooses [FastDifferentiation.jl](https://github.com/brianguenter/FastDifferentiation.jl) while exploiting sparsity.
249
+ """
250
+ struct AutoSparseFastDifferentiation <: AbstractSparseSymbolicDifferentiationMode end
251
+
236
252
export AutoChainRules,
237
253
AutoDiffractor,
238
254
AutoFiniteDiff,
@@ -248,5 +264,7 @@ export AutoChainRules,
248
264
AutoSparseZygote,
249
265
AutoSparseReverseDiff,
250
266
AutoPolyesterForwardDiff,
251
- AutoSparsePolyesterForwardDiff
267
+ AutoSparsePolyesterForwardDiff,
268
+ AutoFastDifferentiation,
269
+ AutoSparseFastDifferentiation
252
270
end
Original file line number Diff line number Diff line change @@ -98,4 +98,12 @@ struct CustomTag end
98
98
adtype = AutoDiffractor ()
99
99
@test adtype isa ADTypes. AbstractADType
100
100
@test adtype isa AutoDiffractor
101
+
102
+ adtype = AutoFastDifferentiation ()
103
+ @test adtype isa ADTypes. AbstractADType
104
+ @test adtype isa AutoFastDifferentiation
105
+
106
+ adtype = AutoSparseFastDifferentiation ()
107
+ @test adtype isa ADTypes. AbstractADType
108
+ @test adtype isa AutoSparseFastDifferentiation
101
109
end
You can’t perform that action at this time.
0 commit comments