Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jit] Updated tests checking save and load transforms #6248

Merged
merged 3 commits into from
Jul 8, 2022

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Jul 8, 2022

Description:

If we change type hints, jit can fail only on loading scripted saved transform. Such error was only caught accidentally by a CI job building gallery example for the PR with type hint change: #6245.

In this PR let's add loading pass for a saved transform.

Additionally, I fixed code formatting to reduce the number of lines.

@vfdev-5 vfdev-5 requested a review from datumbox July 8, 2022 09:07
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@vfdev-5 vfdev-5 merged commit 5416031 into pytorch:main Jul 8, 2022
@vfdev-5 vfdev-5 deleted the test-fn-save-load branch July 8, 2022 10:17
@NicolasHug
Copy link
Member

Thanks for the PR @vfdev-5

Additionally, I fixed code formatting to reduce the number of lines.

Just a minor note, in the future it might be preferable to do that kind of formatting in a separate PR, so that we can add the entry to https://github.com/pytorch/vision/blob/main/.git-blame-ignore-revs in order to keep git-blame clean

@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Jul 11, 2022

@NicolasHug thanks, sounds good!

facebook-github-bot pushed a commit that referenced this pull request Jul 21, 2022
Summary:
* Updated tests to save and load transforms

* Fixed code formatting issue

Reviewed By: jdsgomes

Differential Revision: D37993421

fbshipit-source-id: 7e3314ba14741821c1858186388e0342c6971fbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants