Fix typo under torchgen directory (#111154)

This PR fixes typo in comments and messages in files under `torchgen` directory.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111154
Approved by: https://github.com/rajveer43, https://github.com/Skylion007
This commit is contained in:
Kazuaki Ishizaki
2023-10-13 16:43:42 +00:00
committed by PyTorch MergeBot
parent b460c30893
commit ac48c11ab7
9 changed files with 12 additions and 12 deletions

View File

@ -426,7 +426,7 @@ def run_gen_lazy_tensor(
Generated lazy native functions all perform shape inference, by first using a meta:: kernel
if available for that op, and otherwise using a 'compute_shape_{op}' function instead. The generator
knows the call signature for compute_shape_{op} becuase it matches the nativefunction (and meta::) signature,
knows the call signature for compute_shape_{op} because it matches the nativefunction (and meta::) signature,
so it just has to check whether the op is structured and generate a call for one or the other. It's up to the dev
to supply the missing compute_shape_{op} function, but the codegen at least warns you about this and provides
the expected signature which can be copy-pasted into shape_inference.h.