Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewzh112 committed Dec 2, 2020
1 parent 0ac2d0d commit a32bc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simsiam/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def cosine_loss(p, z):
linear_classifier.fit(feature_bank, feature_labels)

y_preds, y_trues = [], []
for data, target in feature_loader:
for data, target in test_loader:
data = data.to(device)
with torch.no_grad():
feature = model(data, istrain=False)
Expand Down

0 comments on commit a32bc9c

Please sign in to comment.