From 149c655f8ee29d57f05fb140b3feeaa6fd6c4a27 Mon Sep 17 00:00:00 2001 From: Will Tebbutt Date: Wed, 25 Sep 2024 11:16:02 +0100 Subject: [PATCH] Deprecate AutoTapir --- src/dense.jl | 18 +----------------- src/legacy.jl | 2 ++ test/legacy.jl | 4 ++++ 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/dense.jl b/src/dense.jl index 3a50073..93ec5dd 100644 --- a/src/dense.jl +++ b/src/dense.jl @@ -349,23 +349,7 @@ mode(::AutoSymbolics) = SymbolicMode() """ AutoTapir -Struct used to select the [Tapir.jl](https://github.com/withbayes/Tapir.jl) backend for automatic differentiation. - -Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl). - -# Constructors - - AutoTapir(; safe_mode=true) - -# Fields - - - `safe_mode::Bool`: whether to run additional checks to catch errors early. While this is - on by default to ensure that users are aware of this option, you should generally turn - it off for actual use, as it has substantial performance implications. - If you encounter a problem with using Tapir (it fails to differentiate a function, or - something truly nasty like a segfault occurs), then you should try switching `safe_mode` - on and look at what happens. Often errors are caught earlier and the error messages are - more useful. +Tapir.jl has been renamed to Mooncake.jl. Please use `AutoMooncake` instead of this type. """ Base.@kwdef struct AutoTapir <: AbstractADType safe_mode::Bool = true diff --git a/src/legacy.jl b/src/legacy.jl index 786299b..46a5214 100644 --- a/src/legacy.jl +++ b/src/legacy.jl @@ -36,3 +36,5 @@ function AutoModelingToolkit(; obj_sparse::Bool = false, cons_sparse::Bool = fal :AutoModelingToolkit; force = false) return mtk_to_symbolics(obj_sparse, cons_sparse) end + +@deprecate AutoTapir AutoMooncake diff --git a/test/legacy.jl b/test/legacy.jl index 849d895..82bdad6 100644 --- a/test/legacy.jl +++ b/test/legacy.jl @@ -68,3 +68,7 @@ end ad = @test_deprecated AutoReverseDiff(true) @test ad.compile end + +@testset "AutoTapir" begin + @test_deprecated AutoTapir() +end \ No newline at end of file