remove duplicate allowscalar call
This commit is contained in:
parent
1ada9afe81
commit
d16ef75b1c
@ -39,9 +39,9 @@ Flux.back!(sum(l))
|
|||||||
end
|
end
|
||||||
|
|
||||||
@testset "onecold gpu" begin
|
@testset "onecold gpu" begin
|
||||||
CuArrays.allowscalar(false)
|
|
||||||
y = Flux.onehotbatch(ones(3), 1:10) |> gpu;
|
y = Flux.onehotbatch(ones(3), 1:10) |> gpu;
|
||||||
@test Flux.onecold(y) isa CuArray
|
@test Flux.onecold(y) isa CuArray
|
||||||
|
@test y[:,:] isa Flux.OneHotMatrix{<:CuArray}
|
||||||
@test y[3,:] isa CuArray
|
@test y[3,:] isa CuArray
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user