Typo fixes for "overridden" in comments and function names (#155944)

This word appears often in class descriptions and is not consistently spelled. Update comments and some function names to use the correct spelling consistently. Facilitates searching the codebase.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155944
Approved by: https://github.com/Skylion007
This commit is contained in:
Sean McGovern
2025-06-14 03:37:33 +00:00
committed by PyTorch MergeBot
parent ca3cabd24a
commit 297805fd8f
35 changed files with 64 additions and 64 deletions

View File

@ -424,7 +424,7 @@ def get_testing_overrides() -> dict[Callable, Callable]:
>>> inspect.signature(my_add)
<Signature (input, other, out=None)>
"""
# Every function in the PyTorchAPI that can be overriden needs an entry
# Every function in the PyTorchAPI that can be overridden needs an entry
# in this dict.
#
# Optimally we would use inspect to get the function signature and define
@ -1881,7 +1881,7 @@ def _get_overridable_functions() -> tuple[
if ignore:
continue
# cannot be overriden by __torch_function__
# cannot be overridden by __torch_function__
if func in get_ignored_functions():
msg = (
"{}.{} is in the tuple returned by torch._overrides.get_ignored_functions "