-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
make tests of pytorch_example device agnostic #27081
make tests of pytorch_example device agnostic #27081
Conversation
ec11770
to
089e3d5
Compare
089e3d5
to
d49020e
Compare
if is_cuda_and_apex_available(): | ||
if is_torch_fp16_available_on_device(torch_device): | ||
testargs.append("--fp16") |
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.
I don't know the reason why we test with fp16
only if apex
is available. The change here will means we will test it as long as CI is running on GPU. Not sure if this is what we expect.
@muellerzr Do you happen to know the story here (about the apex
part)?
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.
I think it was a bad copy/paste, because I wouldn't have had that in there on purpose.
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.
OK thank you for the feedback ❤️
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.
Thank you @statelesshz for this work!
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
@amyeroberts This is a continuation of (the merged) #25870. There might be more such PRs in the future. |
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 - thanks for adding this and improving our test suite!
What does this PR do?
Part of #25654
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
cc @ydshieh @fxmarty @zhangsibo1129 @arsalanu