Skip to content

Commit

Permalink
Keep nonkwarg constructor for nonbreakability
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jul 25, 2023
1 parent af11539 commit 29b7c8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ADTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ 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 @@ -65,5 +69,9 @@ 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

0 comments on commit 29b7c8a

Please sign in to comment.