Skip to content

Commit

Permalink
Resolve #62 BERT training shows 0 loss (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoransh authored and huzecong committed Jun 26, 2019
1 parent 57ad85d commit 17c44ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/bert/bert_classifier_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _train_epoch():

dis_steps = config_data.display_steps
if dis_steps > 0 and step % dis_steps == 0:
logging.info("step: %d; loss: %d", step, loss)
logging.info("step: %d; loss: %f", step, loss)

eval_steps = config_data.eval_steps
if eval_steps > 0 and step % eval_steps == 0:
Expand Down

0 comments on commit 17c44ac

Please sign in to comment.