You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ConvTranspose layer errors if given a symmetric non-constant pad (that is, length(pad) == ndims(w) - 2), whereas pad::Int (constant pad) and length(pad) == 2 * (ndims(w) - 2) (non-symmetric non-constant pad) work fine.
MWE:
using Flux
c =ConvTranspose((3, 3), 1=>1, pad = (1, 0))
x =randn(Float32, 5, 5, 1, 16)
c(x)
Description
The
ConvTranspose
layer errors if given a symmetric non-constant pad (that is,length(pad) == ndims(w) - 2
), whereaspad::Int
(constant pad) andlength(pad) == 2 * (ndims(w) - 2)
(non-symmetric non-constant pad) work fine.MWE:
errors with
Environment
The above reproducer works in Julia 1.10.2 on a fresh environment
Suggestion
I suspect the problem is in
combined_pad
(here and here). It assumes thatc.pad
has length2 * (ndims(c.weight) - 2)
, which is not the case.The text was updated successfully, but these errors were encountered: