Refactor Dimname.h API to be nicer (#26366)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26366
Changes:
- `NameType::NORMAL` -> `NameType::BASIC`
- `Dimname::is_wildcard` -> `Dimname::isWildcard()`
- `Dimname::is_normal` -> `Dimname::isBasic()`.
- `at::is_valid_identifier` -> `Dimname::isValidName(string)`
- `at::match`, `at::unify` are now methods on `Dimname`.
I am adopting CamelCase for struct members of a named tensor related
struct.
Test Plan: - [namedtensor ci]
Differential Revision: D17484757
Pulled By: zou3519
fbshipit-source-id: 21c128e5025e81513e14d34506a7d7744caefdc2