Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Oct 23, 2019
1 parent e0c1c0e commit f7ce717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cuda/cuda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ cm = gpu(m)
x = [1,2,3]
cx = gpu(x)
@test Flux.crossentropy(x,x) Flux.crossentropy(cx,cx)
@test Flux.crossentropy(x,x, weight=1.0) Flux.crossentropy(cx,cx, weight=1.0)
@test_broken Flux.crossentropy(x,x, weight=[1.0;2.0;3.0]) Flux.crossentropy(cx,cx, weight=[1.0;2.0;3.0])

xs = rand(5, 5)
ys = Flux.onehotbatch(1:5,1:5)
Expand Down

0 comments on commit f7ce717

Please sign in to comment.