From 195680901ed1405c49dc7a26b744f9527104226f Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Sun, 3 Nov 2024 12:13:43 +0100 Subject: [PATCH] cl/deprdev --- src/deprecations.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/deprecations.jl b/src/deprecations.jl index 4ae1732f85..9707d6c7cd 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -151,6 +151,12 @@ end const GPU_BACKEND = @load_preference("gpu_backend", "CUDA") +# help out with https://github.com/chengchingwen/Transformers.jl/issues/201 +const FluxCPUAdaptor = CPUDevice +const FluxCUDAAdaptor = CUDADevice +const FluxAMDGPUAdaptor = AMDGPUDevice +const FluxMetalAdaptor = MetalDevice + # v0.15 deprecations # Enable these when 0.15 is released, and delete const ClipGrad = Optimise.ClipValue etc: