mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE][2/6] fix typos in test/ (test/test_*.py) (#157636)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157636 Approved by: https://github.com/yewentao256, https://github.com/mlazos ghstack dependencies: #156311, #156609
This commit is contained in:
committed by
PyTorch MergeBot
parent
ffe11b2bf2
commit
fc0376e8b1
@ -77,7 +77,7 @@ def quux(a):
|
||||
# dictionary are function names in the torch API and the values are
|
||||
# function implementations. Implementations are added to
|
||||
# HANDLED_FUNCTION_DIAGONAL by decorating a python function with
|
||||
# implements_diagonal. See the overrides immediately below the defintion
|
||||
# implements_diagonal. See the overrides immediately below the definition
|
||||
# of DiagonalTensor for usage examples.
|
||||
HANDLED_FUNCTIONS_DIAGONAL = {}
|
||||
|
||||
@ -133,7 +133,7 @@ class DiagonalTensor:
|
||||
https://numpy.org/devdocs/user/basics.dispatch.html
|
||||
"""
|
||||
# This is defined as a class attribute so that SubDiagonalTensor
|
||||
# below which subclasses DiagonalTensor can re-use DiagonalTensor's
|
||||
# below which subclasses DiagonalTensor can reuse DiagonalTensor's
|
||||
# __torch_function__ implementation.
|
||||
handled_functions = HANDLED_FUNCTIONS_DIAGONAL
|
||||
|
||||
|
Reference in New Issue
Block a user