iblis17 opened a new pull request #13871: Julia: fix `argmax`/`argmin` 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to