Skip to content

Commit

Permalink
add CL
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyue93 committed Apr 3, 2019
1 parent 98fe18e commit 16b2d15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions utils/train_util_DCL.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def train(cfg,
if isinstance(outputs, list):
loss = criterion(outputs[0], labels)
loss += criterion(outputs[1], labels_swap)
loss += add_loss(outputs[2], swap_law)
loss.backward()
optimizer.step()

Expand Down

0 comments on commit 16b2d15

Please sign in to comment.