mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
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:
committed by
PyTorch MergeBot
parent
b460c30893
commit
ac48c11ab7
@ -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.
|
||||
|
Reference in New Issue
Block a user