Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
khizirsiddiqui committed Jul 4, 2021
1 parent 7e76967 commit 4d12fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KD_Lib/KD/common/base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
if device == "cpu":
self.device = torch.device("cpu")
elif device == "cuda":
if torch.cuda.is_available():
if torch.cuda.is_available():
self.device = torch.device("cuda")
else:
print(
Expand Down
5 changes: 3 additions & 2 deletions tests/test_KD_Lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ProbShift,
LabelSmoothReg,
DML,
BaseClass
BaseClass,
)

from KD_Lib.models import (
Expand Down Expand Up @@ -164,7 +164,8 @@ def test_LSTMNet():
# Strategy TESTS
#

def test_BaseClass()

def test_BaseClass():
teac = Shallow(hidden_size=400)
stud = Shallow(hidden_size=100)

Expand Down

0 comments on commit 4d12fdb

Please sign in to comment.