Summary:
Hi, there.
There is a typo in aten/src/ATen/native_parse.py, and I fix it.
`std::aray` -> `std::array`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17641
Differential Revision:
D14301981
Pulled By: ezyang
fbshipit-source-id:
a37859cdedcbf6c29333b954486dfa086d6c2176
match = re.match(r'bool\[(\d+)\]', t)
t = 'std::array<bool,{}>'.format(match.group(1))
elif re.match(r'std::array', t):
- raise RuntimeError("Please use array notation, e.g. bool[3] and not std::aray. "
+ raise RuntimeError("Please use array notation, e.g. bool[3] and not std::array."
"See [temp translations] for details.")
# Legacy type sanitization. TODO: Do we really need this?