Skip to content

Commit

Permalink
deactivate debug : unicode error
Browse files Browse the repository at this point in the history
  • Loading branch information
icml-2020-nlp authored and icml-2020-nlp committed Feb 20, 2020
1 parent a51c4c0 commit 306f453
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def compute_loss(self, model, net_output, sample, reduce=True):
debug = False
self.debugCount += 1
if self.debugCount % 500 == 1:
debug = True
debug = False

lprobs = model.get_normalized_probs(net_output, log_probs=True)
lprobs = lprobs.view(-1, lprobs.size(-1))
Expand Down

0 comments on commit 306f453

Please sign in to comment.