Skip to content

Conversation

@ckmadhira
Copy link
Contributor

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

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 24, 2025

🔗 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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 24, 2025
@facebook-github-bot
Copy link
Contributor

@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;
Copy link
Contributor

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.

@hsharma35
Copy link
Contributor

LGTM, will wait for @zonglinpeng to test internally before we merge.

cmadhira@cadence.com added 2 commits January 28, 2025 18:20
…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
@ckmadhira ckmadhira force-pushed the diff_ip_datatype_support branch from 37c9e67 to 44fbbd8 Compare January 28, 2025 14:58
@facebook-github-bot
Copy link
Contributor

@zonglinpeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@zonglinpeng zonglinpeng left a 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.

zonglinpeng pushed a commit to zonglinpeng/executorch that referenced this pull request Jan 28, 2025
…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
@facebook-github-bot
Copy link
Contributor

@zonglinpeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@zonglinpeng zonglinpeng merged commit c361431 into pytorch:main Jan 29, 2025
4 checks passed
YIWENX14 pushed a commit that referenced this pull request Jan 29, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants