From ad5d40de9c4d4899d5b79243f63e22c72e8b3669 Mon Sep 17 00:00:00 2001 From: ivarflakstad <69173633+ivarflakstad@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:46:34 +0100 Subject: [PATCH] Fix get_device_properties (#36997) Fix remove remnant self from get_device_properties Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com> --- src/transformers/testing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/testing_utils.py b/src/transformers/testing_utils.py index 1ebdac53487..1517be21ed3 100644 --- a/src/transformers/testing_utils.py +++ b/src/transformers/testing_utils.py @@ -3056,7 +3056,7 @@ DeviceProperties = tuple[Union[str, None], Union[int, None]] @cache -def get_device_properties(self) -> DeviceProperties: +def get_device_properties() -> DeviceProperties: """ Get environment device properties. """