Skip to content

Conversation

@GregoryComer
Copy link
Member

Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Reviewed By: mcr229

Differential Revision: D65057149

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 30, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 0fe0696 with merge base 17ad8d3 (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 Oct 30, 2024
@facebook-github-bot
Copy link
Contributor

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

@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 3, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 3, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 5, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 5, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 5, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 5, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 6, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 6, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

Pulled By: GregoryComer
GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Nov 6, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

Pulled By: GregoryComer
@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 6, 2024
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model.

Differential Revision: D65057149

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

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

@facebook-github-bot
Copy link
Contributor

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

Summary:

Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.

Note that trunc is already supported in export.

Reviewed By: mcr229

Differential Revision: D65057149
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 785ebf3 into pytorch:main Nov 6, 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