Skip to content

Commit

Permalink
Adding TODO and fixing indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgzilla committed Jul 16, 2018
1 parent 08b83b4 commit cf65569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions loss.py
Expand Up @@ -65,3 +65,5 @@ def __call__(self, X, Y, M, clf_logits, lm_logits=None, only_return_losses=False
self.opt.step()
self.opt.zero_grad()
return train_loss.item()

# TODO Implement a LossCompute class for similiraty tasks.
2 changes: 1 addition & 1 deletion train.py
Expand Up @@ -244,7 +244,7 @@ def run_epoch():
vector_l2=args.vector_l2,
max_grad_norm=args.max_grad_norm)
compute_loss_fct = MultipleChoiceLossCompute(criterion,
criterion,
criterion,
args.lm_coef,
model_opt)
load_openai_pretrained_model(dh_model.transformer, n_ctx=n_ctx, n_special=n_special)
Expand Down

0 comments on commit cf65569

Please sign in to comment.