Skip to content

Commit 64b99bb

Browse files
authored
Merge pull request #98 from schmrlng/patch-1
Fix typo, ambiguity error with rand in random.jl
2 parents e526007 + f2efdcb commit 64b99bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/random.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ function rand!(A::GPUArray{T}) where T <: AbstractFloat
5757
A
5858
end
5959

60-
rand(X::Type{<: GPUArray{T, N}}, size::NTuple{N, Integer}) where {T, N} = rand(A, T, size)
60+
rand(X::Type{<: GPUArray{T, N}}, size::NTuple{N, Integer}) where {T, N} = rand(X, T, size...)
61+
rand(X::Type{<: GPUArray{T, N}}, size::NTuple{N, Int}) where {T, N} = rand(X, T, size...)
6162

6263
function rand(X::Type{<: GPUArray}, ::Type{ET}, size::Integer...) where ET
6364
A = similar(X, ET, size)

0 commit comments

Comments
 (0)