Skip to content

Commit

Permalink
trivial: silent
Browse files Browse the repository at this point in the history
  • Loading branch information
cdluminate committed Dec 5, 2022
1 parent 30cd8c5 commit 3e98e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robrank/defenses/amd.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def hm_training_step(model: th.nn.Module, batch, batch_idx, *,
loss_bt = barlow.barlow_twins(pnemb[:len(pnemb)//3], labels[anc],
pnemb[len(pnemb)//3:2*len(pnemb)//3], labels[pos])
model.log('Train/loss_bt', loss_bt.item())
print('loss_bt', loss_bt.item())
#print('loss_bt', loss_bt.item())
loss = loss + 1e-5 * loss_bt
# return
return loss

0 comments on commit 3e98e2a

Please sign in to comment.