correct channel value

This commit is contained in:
Dhairya Gandhi 2019-11-24 13:31:31 +05:30
parent 5f21238d1a
commit c031ae1a94
1 changed files with 1 additions and 2 deletions

View File

@ -55,9 +55,8 @@ end
y = Conv((3,3), 1 => 1)(x)
x_hat = ConvTranspose((3, 3), 1 => 1)(y)
@test size(x_hat) == size(x)
m = ConvTranspose((3,3), 2=>1)
x = rand(10,10,2,1)
m = ConvTranspose((3,3), 1=>1)
# Test that the gradient call does not throw: #900
@test gradient(()->sum(m(x)), params(m)) isa Flux.Zygote.Grads
end