Skip to content

Conversation

@GregoryComer
Copy link
Member

Summary: Add prim op implementations for sym round and ceil. Support round in pass_base interpreter.

Differential Revision: D65382714

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 6, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6699

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7b969aa with merge base 8f82198 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Nov 6, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65382714

@facebook-github-bot
Copy link
Contributor

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 7, 2024
Summary:
Add prim op implementations for sym round and ceil. Support round in pass_base interpreter.


Test Plan:
Added tests for ceil and round in prim_ops_test.cpp.

`buck test executorch/kernels/prim_ops/test:`

Differential Revision: D65382714

Pulled By: GregoryComer
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65382714

if (a.isDouble()) {
out = EValue(static_cast<int64_t>(ceil(a.toDouble())));
} else {
ET_CHECK_MSG(false, "%zu", (size_t)a.tag);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit too succinct, please add some explanation why it's unimportant to have it for other dtypes

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 7, 2024
Summary:
Add prim op implementations for sym round and ceil. Support round in pass_base interpreter.


Test Plan:
Added tests for ceil and round in prim_ops_test.cpp. Round is also test end to end with MSGR ODNC model.

`buck test executorch/kernels/prim_ops/test:`

Reviewed By: malfet

Differential Revision: D65382714

Pulled By: GregoryComer
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65382714

Summary:
Add prim op implementations for sym round and ceil. Support round in pass_base interpreter.


Test Plan:
Added tests for ceil and round in prim_ops_test.cpp. Round is also test end to end with MSGR ODNC model.

`buck test executorch/kernels/prim_ops/test:`

Reviewed By: malfet

Differential Revision: D65382714

Pulled By: GregoryComer
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65382714

@facebook-github-bot facebook-github-bot merged commit 5b51bb8 into pytorch:main Nov 10, 2024
40 of 41 checks passed
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. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants