def clip(a, a_min, a_max, out=None):
    # TODO(okuta): check type
    return a.clip(a_min, a_max, out=out)
Clips the values of an array to a given interval.
dataset/ETHPy150Open pfnet/chainer/cupy/math/misc.py/clip