Skip to content

Commit

Permalink
amd/ics: change lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
cdluminate committed Nov 22, 2021
1 parent 6054252 commit 408f4ef
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 @@ -622,7 +622,7 @@ def hm_training_step(model: th.nn.Module, batch, batch_idx, *,
if gradual:
model._hm_prev_loss = loss.item()
if ics:
loss = loss + 1.0 * model.lossfunc.raw(
loss = loss + 0.5 * model.lossfunc.raw(
ap_orig[:len(ap_orig)//2],
pnemb[:len(pnemb) // 3],
ap_orig[len(ap_orig)//2:],
Expand Down

0 comments on commit 408f4ef

Please sign in to comment.