Skip to content

Commit 4d12fdb

Browse files
fix #1
1 parent 7e76967 commit 4d12fdb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

KD_Lib/KD/common/base_class.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
if device == "cpu":
5757
self.device = torch.device("cpu")
5858
elif device == "cuda":
59-
if torch.cuda.is_available():
59+
if torch.cuda.is_available():
6060
self.device = torch.device("cuda")
6161
else:
6262
print(

tests/test_KD_Lib.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
ProbShift,
2424
LabelSmoothReg,
2525
DML,
26-
BaseClass
26+
BaseClass,
2727
)
2828

2929
from KD_Lib.models import (
@@ -164,7 +164,8 @@ def test_LSTMNet():
164164
# Strategy TESTS
165165
#
166166

167-
def test_BaseClass()
167+
168+
def test_BaseClass():
168169
teac = Shallow(hidden_size=400)
169170
stud = Shallow(hidden_size=100)
170171

0 commit comments

Comments
 (0)