|
725 | 725 | @test size(conv(x, w; stride = (1, 2), pad = (2, 3), dilation = (2, 2), flipped = true)) == (12, 7, 16, 10)
|
726 | 726 | end
|
727 | 727 |
|
| 728 | +# https://github.com/FluxML/NNlib.jl/pull/171 |
| 729 | +@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) |
| 732 | + 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) |
| 738 | +end |
| 739 | + |
728 | 740 | @testset "depthwiseconv_wrapper" begin
|
729 | 741 | x = rand(10, 10, 3, 10)
|
730 | 742 | w = rand(2, 2, 3, 3)
|
|
0 commit comments