mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
fix bug
This commit is contained in:
parent
bbf0ab000c
commit
a38c2b4475
@ -106,7 +106,7 @@ def _test_state_dict(weight, bias, input, constructor):
|
||||
# to a different type and move to a different device.
|
||||
if torch_device == 'cpu':
|
||||
return
|
||||
elif torch_device == 'cuda' and not torch.cuda.is_available:
|
||||
elif torch_device == 'cuda' and not torch.cuda.is_available():
|
||||
return
|
||||
|
||||
with torch.no_grad():
|
||||
|
Loading…
x
Reference in New Issue
Block a user