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/02/01 01:18:13 UTC
[GitHub] iblis17 edited a comment on issue #14027: Julia: rename `mx.clip`
to `clamp` for `NDArray`
iblis17 edited a comment 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 named `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