Skip to content

Commit 636376e

Browse files
committed
Implement Base.show_vector.
Avoid allowscalar assertion.
1 parent 455b151 commit 636376e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/abstractarray.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Base.show(io::IO, x::LinearAlgebra.Adjoint{<:Any,<:GPUArray}) =
6262
Base.show(io::IO, x::LinearAlgebra.Transpose{<:Any,<:GPUArray}) =
6363
Base.show(io, LinearAlgebra.transpose(Array(x.parent)))
6464

65+
Base.show_vector(io::IO, x::GPUArray) = Base.show_vector(io, Array(x))
66+
6567

6668
# memory operations
6769

0 commit comments

Comments
 (0)