fix tests

This commit is contained in:
Mike J Innes 2017-10-17 21:33:11 +01:00
parent 2854ae101b
commit 0d568f6faf

View File

@ -11,8 +11,8 @@ gradtest(f, dims...) = gradtest(f, rand.(dims)...)
@test gradtest(x -> sin.(sum(x, (2, 3))), (3,4,5))
@test gradtest(x -> softmax(x).*(1:3), 3)
@test gradtest(x -> softmax(x).*(1:3), (3,5))
@test gradtest(x -> NNlib.softmax(x).*(1:3), 3)
@test gradtest(x -> NNlib.softmax(x).*(1:3), (3,5))
@test gradtest(Flux.mse, rand(5,5), rand(5, 5))
@test gradtest(Flux.crossentropy, rand(5,5), rand(5, 5))