Skip to content

Change "named_guard" in native_functions to "supports_named_tensor"#26352

Closed
zou3519 wants to merge 2 commits intogh/zou3519/174/basefrom
gh/zou3519/174/head
Closed

Change "named_guard" in native_functions to "supports_named_tensor"#26352
zou3519 wants to merge 2 commits intogh/zou3519/174/basefrom
gh/zou3519/174/head

Conversation

@zou3519
Copy link
Copy Markdown
Contributor

@zou3519 zou3519 commented Sep 17, 2019

Stack from ghstack:

"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:

  • TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v
  • [namedtensor ci]

Differential Revision: D17426234

"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]
@pytorchbot pytorchbot added module: docs Related to our documentation, both in docs/ and docblocks module: internals Related to internal abstractions in c10 and ATen module: operators labels Sep 17, 2019
zou3519 added a commit that referenced this pull request Sep 17, 2019
"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]

ghstack-source-id: 981ab6b
Pull Request resolved: #26352
@zou3519 zou3519 requested a review from nairbv September 17, 2019 17:44
Copy link
Copy Markdown
Collaborator

@nairbv nairbv left a comment

Choose a reason for hiding this comment

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

I agree this is much clearer

…d_tensor""

"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]

Differential Revision: [D17426234](https://our.internmc.facebook.com/intern/diff/D17426234)
zou3519 added a commit that referenced this pull request Sep 18, 2019
"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]

ghstack-source-id: f49cad6
Pull Request resolved: #26352
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 18, 2019
…#26352)

Summary:
Pull Request resolved: pytorch/pytorch#26352

"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]

Differential Revision: D17426234

Pulled By: zou3519

fbshipit-source-id: 4cab780e6e29e184e79cdd3690f41df9ebb2ecb5
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@zou3519 merged this pull request in 76fb909.

@facebook-github-bot facebook-github-bot deleted the gh/zou3519/174/head branch October 28, 2019 22:24
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…ytorch#26352)

Summary:
Pull Request resolved: pytorch#26352

"named_guard: P" is the same as "supports_named_tensor: !P".
Also changed the error message to be more understandable to users.

Test Plan:
- `TEST_NAMEDTENSOR=1 pytest test/test_namedtensor.py -v`
- [namedtensor ci]

Differential Revision: D17426234

Pulled By: zou3519

fbshipit-source-id: 4cab780e6e29e184e79cdd3690f41df9ebb2ecb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: docs Related to our documentation, both in docs/ and docblocks module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants