diff --git a/src/ADTypes.jl b/src/ADTypes.jl index 5893917..2b2fca8 100644 --- a/src/ADTypes.jl +++ b/src/ADTypes.jl @@ -30,10 +30,6 @@ function AutoForwardDiff(; chunksize = nothing, tag = nothing) AutoForwardDiff{chunksize,typeof(tag)}(tag) end -function AutoForwardDiff(chunksize = nothing; tag = nothing) - AutoForwardDiff{chunksize,typeof(tag)}(tag) -end - struct AutoReverseDiff <: AbstractADType compile::Bool end @@ -69,9 +65,5 @@ function AutoSparseForwardDiff(; chunksize = nothing, tag = nothing) AutoSparseForwardDiff{chunksize,typeof(tag)}(tag) end -function AutoSparseForwardDiff(chunksize = nothing; tag = nothing) - AutoSparseForwardDiff{chunksize, typeof(tag)}(tag) -end - export AutoFiniteDiff, AutoFiniteDifferences, AutoForwardDiff, AutoReverseDiff, AutoZygote, AutoEnzyme, AutoTracker, AutoModelingToolkit, AutoSparseFiniteDiff, AutoSparseForwardDiff end diff --git a/test/runtests.jl b/test/runtests.jl index c5c626d..d309cf6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -31,11 +31,6 @@ struct CustomTag end @test adtype isa ADTypes.AbstractADType @test adtype isa AutoForwardDiff{10,CustomTag} - adtype = AutoForwardDiff(10) - @test adtype isa ADTypes.AbstractADType - @test adtype isa AutoForwardDiff{10} - - adtype = AutoReverseDiff() @test adtype isa ADTypes.AbstractADType @test adtype isa AutoReverseDiff @@ -82,10 +77,6 @@ struct CustomTag end @test adtype isa ADTypes.AbstractADType @test adtype isa AutoSparseForwardDiff{nothing} - adtype = AutoSparseForwardDiff(10) - @test adtype isa ADTypes.AbstractADType - @test adtype isa AutoSparseForwardDiff{10} - adtype = AutoEnzyme() @test adtype isa ADTypes.AbstractADType @test adtype isa AutoEnzyme{Nothing} @@ -95,5 +86,4 @@ struct CustomTag end adtype = AutoEnzyme(; mode = Val(:Reverse)) @test adtype isa ADTypes.AbstractADType @test adtype isa AutoEnzyme{Val{:Reverse}} - end