Fix spelling (#149277)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/149277
Approved by: https://github.com/zou3519
This commit is contained in:
Theodore Ehrenborg 2025-03-20 01:02:29 +00:00 committed by PyTorch MergeBot
parent 826e790696
commit 02e21c7854

View File

@ -54,7 +54,7 @@ When inputs are COO tensors, this function also supports backward for both input
Supports both CSR and COO storage formats.
.. note::
This function doesn't support computing derivaties with respect to CSR matrices.
This function doesn't support computing derivatives with respect to CSR matrices.
Args:
mat (Tensor): a dense matrix to be added
@ -79,7 +79,7 @@ mm = _add_docstr(
Supports both CSR and COO storage formats.
.. note::
This function doesn't support computing derivaties with respect to CSR matrices.
This function doesn't support computing derivatives with respect to CSR matrices.
This function also additionally accepts an optional :attr:`reduce` argument that allows
specification of an optional reduction operation, mathematically performs the following operation: