Closed vieting closed 3 years ago
We have:
_size_2_t = _scalar_or_tuple_2_t[int]
So according to the doc, this should work. Why doesn't it?
Also, I think it works like this in Torch as well. I.e. you can write ConvTransposed2d(2, 3, 4, 5)
.
So this must work, otherwise there is some bug.
Yes, you're right. I think the problem was not in the default values but in parsing them as tuples with single entry. I removed this and added a test case. Also, I think we can remove the _single
statements for the 1d transposed convolution. This is basically a duplicate of what is done in the parent class _ConvNd
with _ntuple
anyway.
Default parameter shapes were still 1D