Skip to content

Commit 0570f6e

Browse files
Fixed tests
1 parent c131d15 commit 0570f6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/conv.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -727,14 +727,13 @@ end
727727

728728
# https://github.com/FluxML/NNlib.jl/pull/171
729729
@testset "conv_wrapper with groups - not equal types that trigger direct backend" begin
730-
x = rand(Float32, 10, 10, 3, 8)
731-
w = rand(Float64, 2, 2, 3, 4)
730+
x = rand(Float32, 10, 10, 32, 8)
731+
w = rand(Float64, 2, 2, 16, 4)
732732
g = 2
733-
@test size(conv(x, w); groups=g) == (9, 9, 16, 8)
734-
@test size(conv(x, w; stride = (2, 2), pad = (2, 2), groups=g)) == (7, 7, 16, 8)
735-
@test size(conv(x, w1; stride = (1, 2), pad = (2, 3), groups=g)) == (12, 7, 16, 8)
736-
@test size(conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), groups=g)) == (12, 7, 16, 8)
737-
@test size(conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), flipped = true, groups=g)) == (12, 7, 16, 8)
733+
@test size(conv(x, w; groups=g)) == (9, 9, 4, 8)
734+
@test size(conv(x, w; stride = (2, 2), pad = (2, 2), groups=g)) == (7, 7, 4, 8)
735+
@test size(conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), groups=g)) == (12, 7, 4, 8)
736+
@test size(conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), flipped = true, groups=g)) == (12, 7, 4, 8)
738737
end
739738

740739
@testset "depthwiseconv_wrapper" begin

0 commit comments

Comments
 (0)