Skip to content

Conversation

pytorchbot
Copy link
Collaborator

Summary:
Move these types out of the old torch::executor namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in torch::executor.

Most users should not use these directly, instead using the executorch::aten aliases. These ETensor types live under executorch::runtime... to make it a little more clear that they're semi-internal.

Also:

  • Hide bfloat16's bits_from_f32, which was only used by tests
  • Hide the min implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in torch::executor.

Differential Revision: D63294217

Copy link

pytorch-bot bot commented Sep 30, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1b68687 with merge base eecf74f (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 Sep 30, 2024
Summary:
Pull Request resolved: #5569

Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`.

Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal.

Also:
- Hide bfloat16's `bits_from_f32`, which was only used by tests
- Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`.
- Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace

Reviewed By: swolchok

Differential Revision: D63294217

fbshipit-source-id: 5241fd5a0b487631b6460222b6c3e27e82aea5f0
(cherry picked from commit 6ff52cc)
@dbort dbort force-pushed the cherry-pick-5569-by-pytorch_bot_bot_ branch from 68a55b0 to 1b68687 Compare October 1, 2024 01:56
@dbort
Copy link
Contributor

dbort commented Oct 1, 2024

Rebased on top of #5772 which is a required dep

@dbort dbort merged commit fd88913 into release/0.4 Oct 3, 2024
96 checks passed
@dbort dbort deleted the cherry-pick-5569-by-pytorch_bot_bot_ branch October 3, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants