-
Notifications
You must be signed in to change notification settings - Fork 752
modified all the operators to support generic implementation in specific cases #7936
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7936
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@zonglinpeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
| } | ||
|
|
||
| if ((out.scalar_type() == ScalarType::Int) || | ||
| bool optimized = 1; |
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.
Please use true/false instead of implicit conversion from int (1) to bool true.
|
LGTM, will wait for @zonglinpeng to test internally before we merge. |
…ut data types are different or when input data type is different from output datatype
…n Scalar operation fixed an issue related to datatype of the second input
37c9e67 to
44fbbd8
Compare
|
@zonglinpeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
zonglinpeng
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.
all tests passed internally :) Layer norm might caused by something else yesterday will keep an eye on it.
…fic cases (pytorch#7936) Summary: modified all the operators to support generic implementation when input data types are different or when input data type is different from output datatype Pull Request resolved: pytorch#7936 Differential Revision: D68637610 Pulled By: zonglinpeng
|
@zonglinpeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…fic cases (#7936) * modified all the operators to support generic implementation when input data types are different or when input data type is different from output datatype * boolean variables are assiged with true or false instead of 1 or 0. In Scalar operation fixed an issue related to datatype of the second input --------- Co-authored-by: cmadhira@cadence.com <cmadhira@global.cadence.com> Co-authored-by: JP <46308822+zonglinpeng@users.noreply.github.com>
Summary
modified all the operators to support generic implementation when input data types are different or when input data type is different from output datatype