Skip to content

Commit

Permalink
Deprecate AutoTapir
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed Sep 25, 2024
1 parent 149c655 commit b948a45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ mode(::AutoSymbolics) = SymbolicMode()
Tapir.jl has been renamed to Mooncake.jl. Please use `AutoMooncake` instead of this type.
"""
Base.@kwdef struct AutoTapir <: AbstractADType
safe_mode::Bool = true
struct AutoTapir <: AbstractADType
safe_mode::Bool
end

mode(::AutoTapir) = ReverseMode()
Expand Down
7 changes: 6 additions & 1 deletion src/legacy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ function AutoModelingToolkit(; obj_sparse::Bool = false, cons_sparse::Bool = fal
return mtk_to_symbolics(obj_sparse, cons_sparse)
end

@deprecate AutoTapir AutoMooncake
function AutoTapir(; safe_mode=true)
Base.depwarn(
"AutoTapir is deprecated in favour of AutoMooncake.", :AutoTapir; force=false
)
return AutoTapir(safe_mode)
end

0 comments on commit b948a45

Please sign in to comment.