Skip to content

Conversation

@teichert
Copy link
Contributor

@teichert teichert commented Jul 1, 2020

Fixes issue #31759:

  • Changes is_valid_identifier check on named tensor dimensions to allow digits if they are not at the beginning of the name (this allows exactly the ASCII subset of valid python identifiers).
  • Updates error message for illegal dimension names.
  • Updates and adds relevant tests.

…gits as long as they are not at the beginning)
@teichert teichert marked this pull request as ready for review July 1, 2020 21:51
@teichert
Copy link
Contributor Author

teichert commented Jul 1, 2020

@ezyang or @zou3519 would you mind reviewing this?

Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

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

@teichert teichert deleted the fix_issue_31759_allow_digits_in_dimnames branch July 2, 2020 21:04
@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 6aabd12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants