Skip to content

Commit

Permalink
Drop nonkwarg arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jul 25, 2023
1 parent 29b7c8a commit b3ae9ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/ADTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 0 additions & 10 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -95,5 +86,4 @@ struct CustomTag end
adtype = AutoEnzyme(; mode = Val(:Reverse))
@test adtype isa ADTypes.AbstractADType
@test adtype isa AutoEnzyme{Val{:Reverse}}

end

0 comments on commit b3ae9ac

Please sign in to comment.