vision icon indicating copy to clipboard operation
vision copied to clipboard

Change normalize to make it export friendly

Open larryliu0820 opened this issue 1 year ago • 2 comments

As titled. torch.export doesn't work with _get_kernel since it looks into attributes of a class. Here we are assigning a kernel manually for torch.export.

larryliu0820 avatar Jul 02 '24 20:07 larryliu0820

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8511

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

:x: 16 New Failures, 3 Unrelated Failures

As of commit 7666e938cf2a198eb23d4b360a3c74df8a0dfa1f with merge base bf01bab6125c5f1152e4f336b470399e52a8559d (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs 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 Jul 02 '24 20:07 pytorch-bot[bot]

Thanks for the PR @larryliu0820 and sorry for the late reply, I was away last week.

Support for torch.export is still an ongoing effort for the v2 transforms and we still lack a bit of clarity on that front. Can you please share a snippet of what you're trying to enable exactly? E.g. are you trying to export the class? The functional? The kernel? FYI, earlier this year I summarized what is currently supported by torchvision in terms of compile/export (internal link).

NicolasHug avatar Jul 08 '24 09:07 NicolasHug