def atleast_1d(*arys):
    res = []
    for a in arys:
        if not isinstance(a, cupy.ndarray):
            raise TypeError('Only cupy arrays can be atleast_1d')
        if a.ndim == 0:
            a = a.reshape(1)
        res.append(a)
    if len(res) == 1:
        res = res[0]
    return res
Converts arrays to arrays with dimensions >= 1.
dataset/ETHPy150Open pfnet/chainer/cupy/manipulation/dims.py/atleast_1d