We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e76967 commit 4d12fdbCopy full SHA for 4d12fdb
KD_Lib/KD/common/base_class.py
@@ -56,7 +56,7 @@ def __init__(
56
if device == "cpu":
57
self.device = torch.device("cpu")
58
elif device == "cuda":
59
- if torch.cuda.is_available():
+ if torch.cuda.is_available():
60
self.device = torch.device("cuda")
61
else:
62
print(
tests/test_KD_Lib.py
@@ -23,7 +23,7 @@
23
ProbShift,
24
LabelSmoothReg,
25
DML,
26
- BaseClass
+ BaseClass,
27
)
28
29
from KD_Lib.models import (
@@ -164,7 +164,8 @@ def test_LSTMNet():
164
# Strategy TESTS
165
#
166
167
-def test_BaseClass()
+
168
+def test_BaseClass():
169
teac = Shallow(hidden_size=400)
170
stud = Shallow(hidden_size=100)
171
0 commit comments