-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[pytorch] fix labs warning in THTensorMoreMath.cpp #19760
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: Seems pretty innocent change copied from #16242 Test Plan: Make sure the following warning is gone: ../aten/src/TH/generic/THTensorMoreMath.cpp:1140:34: note: use function 'std::abs' instead LAB_IMPLEMENT_BASIC_FUNCTION(abs,labs) ^~~~ std::abs
This was referenced Apr 25, 2019
[pytorch] fix labs warning in THTensorMoreMath.cpp Summary: Seems pretty innocent change copied from #16242 Test Plan: Make sure the following warning is gone: ../aten/src/TH/generic/THTensorMoreMath.cpp:1140:34: note: use function 'std::abs' instead LAB_IMPLEMENT_BASIC_FUNCTION(abs,labs) ^~~~ std::abs gh-metadata: pytorch pytorch 19760 gh/ljk53/12/head
gchanan
approved these changes
Apr 30, 2019
Contributor
gchanan
left a comment
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.
can you clarify a few things:
- does this warning only happen on mobile builds? I don't see it on CPU builds.
- is that the entire warning? Seems strange to start with a
note. - none of the other *abs functions warn in this way?
Contributor
Author
|
@gchanan to your questions:
|
[pytorch] fix labs warning in THTensorMoreMath.cpp Summary: Seems pretty innocent change copied from #16242 Test Plan: Make sure the following warning is gone: ../aten/src/TH/generic/THTensorMoreMath.cpp:1140:34: note: use function 'std::abs' instead LAB_IMPLEMENT_BASIC_FUNCTION(abs,labs) ^~~~ std::abs gh-metadata: pytorch pytorch 19760 gh/ljk53/12/head
[pytorch] fix labs warning in THTensorMoreMath.cpp Summary: Seems pretty innocent change copied from #16242 Test Plan: Make sure the following warning is gone: ../aten/src/TH/generic/THTensorMoreMath.cpp:1140:34: note: use function 'std::abs' instead LAB_IMPLEMENT_BASIC_FUNCTION(abs,labs) ^~~~ std::abs gh-metadata: pytorch pytorch 19760 gh/ljk53/12/head
ljk53
added a commit
that referenced
this pull request
May 1, 2019
Summary: Similar to #19760 Test Plan: - verified the warning is gone;
This was referenced May 1, 2019
gchanan
approved these changes
May 1, 2019
Contributor
zdevito
pushed a commit
to zdevito/ATen
that referenced
this pull request
May 2, 2019
Summary: Pull Request resolved: pytorch/pytorch#19760 ghimport-source-id: d0aabee8c7b881710292d468dca1537c5ea761b5 Differential Revision: D15087655 Pulled By: ljk53 fbshipit-source-id: ac133dfc2301c2a86c41b4b8f1483d7d23824e1e
zhangguanheng66
pushed a commit
to zhangguanheng66/pytorch
that referenced
this pull request
May 6, 2019
Summary: Pull Request resolved: pytorch#19760 ghimport-source-id: d0aabee Differential Revision: D15087655 Pulled By: ljk53 fbshipit-source-id: ac133dfc2301c2a86c41b4b8f1483d7d23824e1e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
Summary:
Seems pretty innocent change copied from #16242
Test Plan:
Make sure the following warning is gone:
../aten/src/TH/generic/THTensorMoreMath.cpp:1140:34: note: use function 'std::abs' instead
LAB_IMPLEMENT_BASIC_FUNCTION(abs,labs)
^~~~
std::abs
Differential Revision: D15087655