@@ -730,10 +730,10 @@ end
730
730
x = rand (Float32, 10 , 10 , 32 , 8 )
731
731
w = rand (Float64, 2 , 2 , 16 , 4 )
732
732
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 )
737
737
end
738
738
739
739
@testset " depthwiseconv_wrapper" begin
0 commit comments