From 02e21c78543d0861305382b84c43936c90274eab Mon Sep 17 00:00:00 2001 From: Theodore Ehrenborg Date: Thu, 20 Mar 2025 01:02:29 +0000 Subject: [PATCH] Fix spelling (#149277) Pull Request resolved: https://github.com/pytorch/pytorch/pull/149277 Approved by: https://github.com/zou3519 --- torch/sparse/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/sparse/__init__.py b/torch/sparse/__init__.py index 858cb7fbd86..ca28bf0d0b6 100644 --- a/torch/sparse/__init__.py +++ b/torch/sparse/__init__.py @@ -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: