Skip to content

Commit 6a20153

Browse files
test: compare conv implementations instead of size
1 parent 0902922 commit 6a20153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/conv.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ end
730730
x = rand(Float32, 10, 10, 32, 8)
731731
w = rand(Float64, 2, 2, 16, 4)
732732
g = 2
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)
733+
@test conv(x, w; groups=g) conv(x, Float32.(w); groups=g)
734+
@test conv(x, w; stride = (2, 2), pad = (2, 2), groups=g) conv(x, w; stride = (2, 2), pad = (2, 2), groups=g)
735+
@test conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), groups=g) conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), groups=g)
736+
@test conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), flipped = true, groups=g) conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), flipped = true, groups=g)
737737
end
738738

739739
@testset "depthwiseconv_wrapper" begin

0 commit comments

Comments
 (0)