|
| 1 | +@testset "AutoModelingToolkig" begin |
| 2 | + ad = @test_deprecated AutoModelingToolkit() |
| 3 | + @test ad isa AbstractADType |
| 4 | + @test ad isa AutoSparse |
| 5 | + @test dense_ad(ad) isa AutoSymbolics |
| 6 | +end |
| 7 | + |
1 | 8 | @testset "AutoSparseFastDifferentiation" begin
|
2 |
| - ad = AutoSparseFastDifferentiation() |
| 9 | + ad = @test_deprecated AutoSparseFastDifferentiation() |
3 | 10 | @test ad isa AbstractADType
|
4 | 11 | @test dense_ad(ad) isa AutoFastDifferentiation
|
5 | 12 | end
|
6 | 13 |
|
7 | 14 | @testset "AutoSparseFiniteDiff" begin
|
8 |
| - ad = AutoSparseFiniteDiff() |
| 15 | + ad = @test_deprecated AutoSparseFiniteDiff() |
9 | 16 | @test ad isa AbstractADType
|
10 | 17 | @test dense_ad(ad) isa AutoFiniteDiff
|
11 | 18 | @test dense_ad(ad).fdtype === Val(:forward)
|
|
14 | 21 | end
|
15 | 22 |
|
16 | 23 | @testset "AutoSparseForwardDiff" begin
|
17 |
| - ad = AutoSparseForwardDiff() |
| 24 | + ad = @test_deprecated AutoSparseForwardDiff() |
18 | 25 | @test ad isa AbstractADType
|
19 | 26 | @test dense_ad(ad) isa AutoForwardDiff{nothing, Nothing}
|
20 | 27 |
|
21 |
| - ad = AutoSparseForwardDiff(; chunksize = 10, tag = CustomTag()) |
| 28 | + ad = @test_deprecated AutoSparseForwardDiff(; chunksize = 10, tag = CustomTag()) |
22 | 29 | @test ad isa AbstractADType
|
23 | 30 | @test dense_ad(ad) isa AutoForwardDiff{10, CustomTag}
|
24 | 31 | end
|
25 | 32 |
|
26 | 33 | @testset "AutoSparsePolyesterForwardDiff" begin
|
27 |
| - ad = AutoSparsePolyesterForwardDiff(; chunksize = 10, tag = CustomTag()) |
| 34 | + ad = @test_deprecated AutoSparsePolyesterForwardDiff(; |
| 35 | + chunksize = 10, tag = CustomTag()) |
28 | 36 | @test ad isa AbstractADType
|
29 | 37 | @test dense_ad(ad) isa AutoPolyesterForwardDiff{10, CustomTag}
|
30 | 38 | end
|
31 | 39 |
|
32 | 40 | @testset "AutoSparseReverseDiff" begin
|
33 |
| - ad = AutoSparseReverseDiff(; compile = true) |
| 41 | + ad = @test_deprecated AutoSparseReverseDiff(; compile = true) |
34 | 42 | @test ad isa AbstractADType
|
35 | 43 | @test dense_ad(ad) isa AutoReverseDiff
|
36 | 44 | @test dense_ad(ad).compile
|
37 | 45 | end
|
38 | 46 |
|
39 | 47 | @testset "AutoSparseZygote" begin
|
40 |
| - ad = AutoSparseZygote() |
| 48 | + ad = @test_deprecated AutoSparseZygote() |
41 | 49 | @test ad isa AbstractADType
|
42 | 50 | @test dense_ad(ad) isa AutoZygote
|
43 | 51 | end
|
0 commit comments