szha commented on a change in pull request #7304: gluon bce & ctc losses
URL: https://github.com/apache/incubator-mxnet/pull/7304#discussion_r130967185
##########
File path: python/mxnet/gluon/loss.py
##########
@@ -142,6 +144,46 @@ def hybrid_forward(self, F, output, label,
sample_weight=None):
return F.mean(loss, axis=self._batch_axis, exclude=True)
+class BinaryCrossEntropyLoss(Loss):
+ r"""The cross-entropy loss for binary classification.
Review comment:
[pytorch uses it](http://pytorch.org/docs/master/nn.html#bceloss)
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services