sxjscience commented on a change in pull request #17196:
URL: https://github.com/apache/incubator-mxnet/pull/17196#discussion_r461310396



##########
File path: python/mxnet/gluon/loss.py
##########
@@ -74,6 +74,26 @@ def _reshape_like(F, x, y):
     return F.reshape_like(x, y)
 
 
+def _batch_mean(F, loss, batch_axis):
+    """Return mean on the specified batch axis, not keeping the axis"""
+    if is_np_array():
+        axes = list(range(loss.ndim))

Review comment:
       Would this work for the hybridized case?




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to