Skip to content

Commit

Permalink
correct a error of missing "not"
Browse files Browse the repository at this point in the history
  • Loading branch information
PanyiDong committed Apr 9, 2022
1 parent e5bd3c7 commit d20a6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions My_AutoML/_hpo/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Author: Panyi Dong (panyid2@illinois.edu)
-----
Last Modified: Saturday, 9th April 2022 12:20:03 am
Last Modified: Saturday, 9th April 2022 1:51:44 pm
Modified By: Panyi Dong (panyid2@illinois.edu)
-----
Expand Down Expand Up @@ -94,7 +94,7 @@
import importlib

torch_spec = importlib.util.find_spec("torch")
if torch_spec is None:
if torch_spec is not None:
import torch

device_count = torch.cuda.device_count()
Expand Down

0 comments on commit d20a6d4

Please sign in to comment.