checking "transposed convolution" at beginning #3631
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Current
check_convolution_args
checks shapes of parameters before checkingtransposed
. For a model usingConvTranspose2d
, this may incur error likeinstead of showing
"transposed convolution not supported yet."
(see "ET CPU" in the test plan of D57258810).The reason for getting the error above is due to the difference of shape of
weight
betweenConvTranspose2d
andConv2d
, specifically,weight
inConvTranspose2d
is (note that the first item isin_channels
)weight
inConv2d
is (note that the first item isout_channels
)so
tensors_have_same_size_at_dims(bias.value(), 0, weight, 0));
may fail forConvTranspose2d
.The error message would be more informative if we check
transposed
at the beginning.Differential Revision: D57424572