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 2019/01/14 12:46:44 UTC

[GitHub] iblis17 opened a new pull request #13871: julia: fix `argmax` for NDArray

iblis17 opened a new pull request #13871: julia: fix `argmax` for NDArray
URL: https://github.com/apache/incubator-mxnet/pull/13871
 
 
   - fix 0-based index output to 1-based index
   
   close #13786 
   
   --
   ```julia
   julia> x = NDArray([1. 2 3; 4 5 6])
   2×3 NDArray{Float64,2} @ CPU0:
    1.0  2.0  3.0
    4.0  5.0  6.0
   
   julia> argmax(x, dims = 1)
   1×3 NDArray{Float64,2} @ CPU0:
    2.0  2.0  2.0
   
   julia> argmax(x, dims = 2)
   2×1 NDArray{Float64,2} @ CPU0:
    3.0
    3.0
   ```

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