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