File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
12
12
13
13
[compat ]
14
14
AbstractFFTs = " 0.4, 0.5, 1.0"
15
- Adapt = " 2.0"
15
+ Adapt = " 2.0, 3.0 "
16
16
julia = " 1.5"
17
17
18
18
[extras ]
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ abstract type AbstractGPUArrayStyle{N} <: AbstractArrayStyle{N} end
19
19
20
20
# Wrapper types otherwise forget that they are GPU compatible
21
21
# NOTE: don't directly use GPUArrayStyle here not to lose downstream customizations.
22
- BroadcastStyle (W:: Type{<:WrappedGPUArray} )= BroadcastStyle (parent (W){eltype (W), ndims (W)})
23
- backend (W:: Type{<:WrappedGPUArray} ) = backend (parent (W){eltype (W), ndims (W)})
22
+ BroadcastStyle (W:: Type{<:WrappedGPUArray} )= BroadcastStyle (Adapt . parent (W){Adapt . eltype (W), Adapt . ndims (W)})
23
+ backend (W:: Type{<:WrappedGPUArray} ) = backend (Adapt . parent (W){Adapt . eltype (W), Adapt . ndims (W)})
24
24
25
25
# Ref is special: it's not a real wrapper, so not part of Adapt,
26
26
# but it is commonly used to bypass broadcasting of an argument
You can’t perform that action at this time.
0 commit comments