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/12/04 03:26:15 UTC

[GitHub] ChaiBapchya commented on a change in pull request #13083: [WIP] [MXNET-345] Hardmax operator

ChaiBapchya commented on a change in pull request #13083: [WIP] [MXNET-345] Hardmax operator
URL: https://github.com/apache/incubator-mxnet/pull/13083#discussion_r238519322
 
 

 ##########
 File path: python/mxnet/ndarray/contrib.py
 ##########
 @@ -542,3 +542,21 @@ def isnan(data):
     <NDArray 2 @cpu(0)>
     """
     return data != data
+
+def hardmax(data):
+    """Returns batched one-hot vectors.
+
+    The depth index containing the `1` is that of the maximum logit value.
+
+
+    Parameters
+    ----------
+    input : NDArray
+        An N-D NDArray.
+
+    Returns
+    -------
+    output: NDArray
+        The output NDarray, is a batched one-hot tensor.
 
 Review comment:
   added

----------------------------------------------------------------
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