pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
1.35k stars 218 forks source link

checking "transposed convolution" at beginning #3631

Open copyrightly opened 2 weeks ago

copyrightly commented 2 weeks ago

Summary: Current check_convolution_args checks shapes of parameters before checking transposed. For a model using ConvTranspose2d, this may incur error like

executorch:tensor_util.h:655] Check failed (a.size(dim_a) == b.size(dim_b)): Tensors do not match: a.size(0) = 512 does not match b.size(0) = 1024

instead 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 between ConvTranspose2d and Conv2d, specifically,

The error message would be more informative if we check transposed at the beginning.

Differential Revision: D57424572

pytorch-bot[bot] commented 2 weeks ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3631

Note: Links to docs will display an error until the docs builds have been completed.

:white_check_mark: You can merge normally! (1 Unrelated Failure)

As of commit 3e3a6b8b4bd2c1d9f32522ddb9c32fd444ff608d with merge base ad419a512b09a88f2b1f5d5f528693d60f084192 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

* [pull / unittest / macos (buck2) / macos-job](https://hud.pytorch.org/pr/pytorch/executorch/3631#25035238245) ([gh](https://github.com/pytorch/executorch/actions/runs/9107040500/job/25035238245)) (detected as infra flaky with no log or failing log classifier)

This comment was automatically generated by Dr. CI and updates every 15 minutes.

facebook-github-bot commented 2 weeks ago

This pull request was exported from Phabricator. Differential Revision: D57424572

facebook-github-bot commented 2 weeks ago

This pull request was exported from Phabricator. Differential Revision: D57424572