Fix typo under torch/_inductor directory (#119658)

This PR fixes typo in comments and msgs under `torch/_inductor` directory, and also changes the corresponding test.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/119658
Approved by: https://github.com/colesbury
This commit is contained in:
Kazuaki Ishizaki
2024-04-30 22:28:52 +00:00
committed by PyTorch MergeBot
parent ca0f070065
commit 9fec26e231
9 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ def get_all_call_args(call_args_list):
It will fail if any kernel has the same argument passed in multiple times.
Check test_pass_same_arg_multi_times in test_multi_kernel.py
Instead, we pick the longest call args and assert that otehr call args are
Instead, we pick the longest call args and assert that other call args are
a subset of it.
"""
return _get_all_args(call_args_list)
@ -128,7 +128,7 @@ class MultiKernelState:
)
# add subkernel src code hashes to the multi-kernel source code so changing a
# subkernel implementation will result in a differnt py file for
# subkernel implementation will result in a different py file for
# multi-kernel. This makes cache implementation straightforward since
# we can decide cache file name based on multi-kernel py file name
# directly.