Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Sep 17, 2019

Stack from ghstack:

This PR doesn't delete the code for them yet because it takes some effort to
determine what to delete. I will send a followup PR fully deleting
tagged names, but this PR disables their creation.

Test Plan:

  • [namedtensor ci]

Pull Request resolved: #26356

Differential Revision: D17428409

This PR doesn't delete the code for them yet because it takes some effort to
determine what to delete. I will send a followup PR fully deleting
tagged names, but this PR disables their creation.

Test Plan:
- [namedtensor ci]
@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label Sep 17, 2019
@zou3519 zou3519 requested a review from nairbv September 17, 2019 18:36
This PR doesn't delete the code for them yet because it takes some effort to
determine what to delete. I will send a followup PR fully deleting
tagged names, but this PR disables their creation.

Test Plan:
- [namedtensor ci]

Pull Request resolved: #26356

Differential Revision: [D17428409](https://our.internmc.facebook.com/intern/diff/D17428409)
check_valid_identifier(tag);
return Dimname(NameType::TAGGED, full_name, Symbol::dimname(untagged_name));
check_valid_identifier(full_name.toUnqualString());
return Dimname(full_name);
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we're getting rid of tagged names, should it just be "name" instead of "full_name"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed that in the next diff in the stack: #26365.

This one is to just disable creation of tagged names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can merge the two PRs together (perhaps they make more sense as one unit) if that makes them easier to review.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yup, saw it.

ASSERT_EQ(dimname.full_name(), foo);
ASSERT_EQ(dimname.untagged_name(), foo);

ASSERT_THROW(Dimname::fromSymbol(Symbol::dimname("inva.lid")), c10::Error);
Copy link
Collaborator

Choose a reason for hiding this comment

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

what are we throwing in this case? that . isn't allowed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are throwing the error message that says "only alphabetical and underscore characters are allowed"

This PR doesn't delete the code for them yet because it takes some effort to
determine what to delete. I will send a followup PR fully deleting
tagged names, but this PR disables their creation.

Test Plan:
- [namedtensor ci]

Pull Request resolved: #26356

Differential Revision: [D17428409](https://our.internmc.facebook.com/intern/diff/D17428409)
This PR doesn't delete the code for them yet because it takes some effort to
determine what to delete. I will send a followup PR fully deleting
tagged names, but this PR disables their creation.

Test Plan:
- [namedtensor ci]

Pull Request resolved: #26356

Differential Revision: [D17428409](https://our.internmc.facebook.com/intern/diff/D17428409)
@zou3519 zou3519 mentioned this pull request Sep 19, 2019
@zou3519 zou3519 closed this Sep 20, 2019
@facebook-github-bot facebook-github-bot deleted the gh/zou3519/175/head branch October 28, 2019 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants