-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add test to check that classification models are FX-compatible #3662
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small question but LGTM when green!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Are we merging this or what? :)
Give me some more time before merging this, there is still some things I'd like to check / verify before getting this in. |
@fmassa I took care of merging with master and making this up-to-date with our new testing infra. LMK if I can help move this forward w.r.t. #3662 (comment) ! |
Thanks @NicolasHug ! Let's get this PR merged. I'm not yet sure if we will be adding as constraint that all classification models will be FX-compatible in the future, but at least having this check here will enable us to think about it if it breaks in the future. |
Hey @fmassa! You merged this PR, but no labels were added. |
…le (#3662) Summary: * Add test to check that classification models are FX-compatible * Replace torch.equal with torch.allclose * remove skipling Reviewed By: fmassa Differential Revision: D29264313 fbshipit-source-id: 4e57e255c6ce680fc6deee6a9980a7d189e23597 Co-authored-by: Nicolas Hug <nicolashug@fb.com>
This let us know if the FX-based approach for feature extraction from #3597 would be able to support all classification models in torchvision.
The current approach for feature extraction only work for a subset of the models, and notably doesn't work for inception-style models.
cc @kazhang @jamesr66a for visibility