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

Fix quantized references #8073

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Conversation

NicolasHug
Copy link
Member

Fixes #8069

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 27, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8073

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

❌ 12 New Failures, 15 Unrelated Failures

As of commit 752cf09 with merge base a63f98a (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

Comment on lines +260 to +261
parser.add_argument("--backend", default="PIL", type=str.lower, help="PIL or tensor - case insensitive")
parser.add_argument("--use-v2", action="store_true", help="Use V2 transforms")
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the actual fix. These fields are accessed in

backend=args.backend,
use_v2=args.use_v2,

but since the args parameter comes from this script (and not from train.py), they need to be defined here as well.

Since the --backend parameter already existed in this file, I decided to break BC and rename it into qbackend.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be reflected in the README, e.g.

5. backend: 'fbgemm'

@NicolasHug NicolasHug requested review from pmeier and vfdev-5 October 27, 2023 11:16
Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +260 to +261
parser.add_argument("--backend", default="PIL", type=str.lower, help="PIL or tensor - case insensitive")
parser.add_argument("--use-v2", action="store_true", help="Use V2 transforms")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be reflected in the README, e.g.

5. backend: 'fbgemm'

@NicolasHug NicolasHug merged commit 96d2ce9 into pytorch:main Oct 27, 2023
35 of 62 checks passed
@NicolasHug NicolasHug deleted the aljnalefjnajnaef branch October 27, 2023 12:26
facebook-github-bot pushed a commit that referenced this pull request Nov 13, 2023
Reviewed By: vmoens

Differential Revision: D50789093

fbshipit-source-id: 17b6840f89063eeef1fb429ff04817f46e5919eb
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.

AttributeError: 'Namespace' object has no attribute 'use_v2'
3 participants