Skip to content

Commit 40c7808

Browse files
ivarflakstadydshieh
authored andcommitted
Fix get_device_properties (huggingface#36997)
Fix remove remnant self from get_device_properties Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
1 parent b8d7aa6 commit 40c7808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/testing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3056,7 +3056,7 @@ def cleanup(device: str, gc_collect=False):
30563056

30573057

30583058
@cache
3059-
def get_device_properties(self) -> DeviceProperties:
3059+
def get_device_properties() -> DeviceProperties:
30603060
"""
30613061
Get environment device properties.
30623062
"""

0 commit comments

Comments
 (0)