mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] iblis17 commented on issue #14027: Julia: rename `mx.clip` to `clamp` for `NDArray`
Date Fri, 01 Feb 2019 01:17:46 GMT
iblis17 commented on issue #14027: Julia: rename `mx.clip` to `clamp` for `NDArray`
URL: https://github.com/apache/incubator-mxnet/pull/14027#issuecomment-459569979
 
 
   There is a API name `clamp`, which functionality is same as `mx.clip`, in Julia's stdlib.
   
   e.g.
   ```julia
   julia> A = [1,2,3,4,5]
   5-element Array{Int64,1}:
    1
    2
    3
    4
    5
   
   julia> clamp.(A, 3, 4)
   5-element Array{Int64,1}:
    3
    3
    3
    4
    4
   ```
   
   So I renamed and make it overload the `clamp` function for type `NDArray`.

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

Mime
View raw message