Skip to content

Commit c016d57

Browse files
committed
Fix invocation of similar.
1 parent b2fab28 commit c016d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/construction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function Base.convert(AT::Type{<: GPUArray{T, N}}, A::DenseArray{T, N}) where {T
7777
end
7878

7979
function Base.convert(AT::Type{<: GPUArray{T1}}, A::DenseArray{T2, N}) where {T1, T2, N}
80-
copyto!(similar(AT{T1}, size(A)), convert(Array{T1, N}, A))
80+
copyto!(similar(AT, size(A)), convert(Array{T1, N}, A))
8181
end
8282

8383
function Base.convert(AT::Type{<: GPUArray}, A::DenseArray{T2, N}) where {T2, N}

0 commit comments

Comments
 (0)