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 deprecation warning in scalar_type_analysis #50218
Fix deprecation warning in scalar_type_analysis #50218
Conversation
💊 CI failures summary and remediationsAs of commit 6d0e518 (more details on the Dr. CI page):
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. This comment has been revised 10 times. |
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.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
Throughout the codebase, I see invocations of this function called as isIntegralType(t, /*includeBool=*/ false)
. Why do we have that/should we be consistent here?
lol we could do this :P https://www.fluentcpp.com/2018/12/14/named-arguments-cpp/ |
c88e63b
to
2713e16
Compare
Because "false" argument is quite confusing without knowing the function signature. A rather common workaround for this problem is to define |
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.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
2713e16
to
6d0e518
Compare
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.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Pull Request resolved: pytorch#50218 Reviewed By: janeyx99 Differential Revision: D25827971 Pulled By: malfet fbshipit-source-id: a4e467721435d7ae0db2195694053621eee8c2ee
No description provided.