mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
ca3cabd24a
commit
297805fd8f
@ -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 "
|
||||
|
Reference in New Issue
Block a user