executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Add generic annotator for data layout ops

Open benkli01 opened this issue 1 year ago • 4 comments

Data layout ops like unsqueeze are not annotated by the quantizer per default which leads to issues down the line. Therefore we add a generic annotator to explicitly annotate those ops.

benkli01 avatar Oct 02 '24 11:10 benkli01

:link: Helpful Links

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

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

:x: 3 New Failures, 1 Unrelated Failure

As of commit 265cdb7315095137d976a24e18852647973eb7b3 with merge base 393553ceecb26f73a189e7109c14503b34657c8e (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

pytorch-bot[bot] avatar Oct 02 '24 11:10 pytorch-bot[bot]

Data layout ops like unsqueeze are not annotated by the quantizer per default which leads to issues down the line

Can you elaborate? what issues? Is it just lowering issues?

digantdesai avatar Oct 03 '24 02:10 digantdesai

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Oct 03 '24 02:10 facebook-github-bot

Data layout ops like unsqueeze are not annotated by the quantizer per default which leads to issues down the line

Can you elaborate? what issues? Is it just lowering issues?

Yes, it's a lowering issue. If the data layout op is in the beginning of the graph the forward propagation of annotations does not work (unless we annotate the inputs explicitly). We tried implementing a backward propagation as well, but sharing specs in the backward direction seems to be not supported, so we went for explicit annotation. Or are we missing something?

benkli01 avatar Oct 03 '24 07:10 benkli01

@digantdesai merged this pull request in pytorch/executorch@98a58e0dff16cf4c701785df1d41d16b2f5f1b44.

facebook-github-bot avatar Oct 04 '24 19:10 facebook-github-bot