You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/02 00:23:42 UTC

[GitHub] ThomasDelteil commented on a change in pull request #12951: Update Gluon example folder

ThomasDelteil commented on a change in pull request #12951: Update Gluon example folder
URL: https://github.com/apache/incubator-mxnet/pull/12951#discussion_r230240729
 
 

 ##########
 File path: example/gluon/lstm_crf/lstm_crf.py
 ##########
 @@ -223,6 +224,8 @@ def forward(self, sentence):  # dont confuse this with _forward_alg above.
             # calling optimizer.step()
             neg_log_likelihood.backward()
         optimizer.step(1)
+        neg_log_likelihood_acc += neg_log_likelihood.mean()
 
 Review comment:
   good catch :+1:

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services