n-d conv tests

This commit is contained in:
Mike J Innes 2018-02-28 12:20:00 +00:00
parent a401f08cda
commit 3ac6a8ef05
1 changed files with 2 additions and 0 deletions

View File

@ -60,7 +60,9 @@ end
2y + x
end
@test gradtest(conv, rand(10, 3, 2), randn(2, 3, 2))
@test gradtest(conv, rand(10, 10, 3, 2), randn(2, 2, 3, 2))
@test gradtest(conv, rand(10, 10, 10, 3, 2), randn(2, 2, 2, 3, 2))
@test gradtest(x -> maxpool(x, (2,2)), rand(10, 10, 3, 2))
@test gradtest(x -> meanpool(x, (2,2)), rand(10, 10, 3, 2))