From b3ae9ac0678b47f100d10af07a41e75b336b00e1 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Tue, 25 Jul 2023 13:50:23 -0400 Subject: [PATCH] Drop nonkwarg arg --- src/ADTypes.jl | 8 -------- test/runtests.jl | 10 ---------- 2 files changed, 18 deletions(-) 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