Skip to content

Commit a38c2b4

Browse files
joao-alex-cunharwightman
authored andcommitted
fix bug
1 parent bbf0ab0 commit a38c2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_optim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def fn_base(optimizer, weight, bias):
106106
# to a different type and move to a different device.
107107
if torch_device == 'cpu':
108108
return
109-
elif torch_device == 'cuda' and not torch.cuda.is_available:
109+
elif torch_device == 'cuda' and not torch.cuda.is_available():
110110
return
111111

112112
with torch.no_grad():

0 commit comments

Comments
 (0)