Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Oct 27, 2024
1 parent 53206ad commit 3339bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MLDataDevicesoneAPIExt = ["GPUArrays", "oneAPI"]
AMDGPU = "0.9.6, 1"
Adapt = "4.1"
CUDA = "5.2"
ChainRules = "1.51.0"
ChainRules = "1.51"
ChainRulesCore = "1.23"
Compat = "4.15"
FillArrays = "1"
Expand Down
2 changes: 1 addition & 1 deletion ext/MLDataDevicesZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Zygote: OneElement
Adapt.adapt_storage(::CPUDevice, x::OneElement) = x

for Dev in GPU_DEVICES
# use `@eval` to avoid ambiguity with adapt_storage(::CUDADevice, ::AbstractArray), ...
# use `@eval` to avoid ambiguity with adapt_storage(::CUDADevice, ::AbstractArray)
@eval Adapt.adapt_storage(to::$Dev, x::OneElement) = Adapt.adapt(to, collect(x))
end

Expand Down

0 comments on commit 3339bd5

Please sign in to comment.