Skip to content

Commit

Permalink
Merge pull request #71 from SciML/Vaibhavdixit02-patch-1
Browse files Browse the repository at this point in the history
Add deprecated non-kwarg AutoSparseReverseDiff constructor
  • Loading branch information
ChrisRackauckas authored Jul 16, 2024
2 parents b8499f3 + 905bb78 commit 332590e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/legacy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

@deprecate AutoSparseReverseDiff(; kwargs...) AutoSparse(AutoReverseDiff(; kwargs...))

@deprecate AutoSparseReverseDiff(compile) AutoSparse(AutoReverseDiff(; compile))

@deprecate AutoSparseZygote() AutoSparse(AutoZygote())

@deprecate AutoReverseDiff(compile) AutoReverseDiff(; compile)
Expand Down
5 changes: 5 additions & 0 deletions test/legacy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ end
@test ad isa AbstractADType
@test dense_ad(ad) isa AutoReverseDiff
@test dense_ad(ad).compile

ad = @test_deprecated AutoSparseReverseDiff(true)
@test ad isa AbstractADType
@test dense_ad(ad) isa AutoReverseDiff
@test dense_ad(ad).compile
end

@testset "AutoSparseZygote" begin
Expand Down

0 comments on commit 332590e

Please sign in to comment.