ehsanmok commented on a change in pull request #17435: Chopt docfixes
URL: https://github.com/apache/incubator-mxnet/pull/17435#discussion_r370907772
 
 

 ##########
 File path: docs/python_docs/python/tutorials/packages/gluon/loss/loss.md
 ##########
 @@ -160,7 +160,7 @@ In classification, we often apply the
 softmax operator to the predicted outputs to obtain prediction probabilities,
 and then apply the cross entropy loss against the true labels:
 
-$$ \begin{align}\begin{aligned}p = \softmax({pred})\\L = -\sum_i \sum_j 
{label}_j \log p_{ij}\end{aligned}\end{align}
+$$ \begin{align}\begin{aligned}p = softmax({pred})\\L = -\sum_i \sum_j 
{label}_j \log p_{ij}\end{aligned}\end{align}
 
 Review comment:
   What you did works. Previously it was `\softmax` with the rendering issue, 
but enclosing it in `\text{softmax}` tells latex to properly handle text 
written in latex. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

Reply via email to