From 840d3c32401d10a803999dca290d451f1867307b Mon Sep 17 00:00:00 2001 From: internal developer Date: Mon, 11 Nov 2024 13:35:39 +0530 Subject: [PATCH] Fix typo for opinfo adaptations (#4) --- torch/testing/_internal/opinfo/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/testing/_internal/opinfo/core.py b/torch/testing/_internal/opinfo/core.py index 2aa38511d4e97..cd94ff23a4391 100644 --- a/torch/testing/_internal/opinfo/core.py +++ b/torch/testing/_internal/opinfo/core.py @@ -1430,7 +1430,7 @@ def supported_backward_dtypes(self, device_type): else self.backward_dtypesIfCUDA ) elif device_type == "hpu": - backward_dtype = self.backward_dtypesIfHpu + backward_dtypes = self.backward_dtypesIfHpu else: backward_dtypes = self.backward_dtypes