Fixed typo in aten/src/ATen/native_parse.py (#17641)
authorwkcn <wkcn@live.cn>
Mon, 4 Mar 2019 18:08:04 +0000 (10:08 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 4 Mar 2019 18:10:52 +0000 (10:10 -0800)
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

aten/src/ATen/native_parse.py

index 0cf1e0f..124538e 100644 (file)
@@ -88,7 +88,7 @@ def type_argument_translations(arg):
         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?