Skip to content

Commit 9b0ee07

Browse files
cl/deprdev (#2512)
1 parent 4018708 commit 9b0ee07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/deprecations.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ end
151151
const GPU_BACKEND = @load_preference("gpu_backend", "CUDA")
152152

153153

154+
# help out with https://github.com/chengchingwen/Transformers.jl/issues/201
155+
const FluxCPUAdaptor = CPUDevice
156+
const FluxCUDAAdaptor = CUDADevice
157+
const FluxAMDGPUAdaptor = AMDGPUDevice
158+
const FluxMetalAdaptor = MetalDevice
159+
154160
# v0.15 deprecations
155161

156162
# Enable these when 0.15 is released, and delete const ClipGrad = Optimise.ClipValue etc:

0 commit comments

Comments
 (0)