def ones(shape, dtype=numpy.float32, stream=None):
    warnings.warn(
        'chainer.cuda.ones is deprecated. Use cupy.ones instead.',
        DeprecationWarning)
    check_cuda_available()
    assert stream is None
    return cupy.ones(shape, dtype=dtype)
Create the toolkit-specific control that represents the widget.
dataset/ETHPy150Open pfnet/chainer/chainer/cuda.py/ones--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/layered_panel.py/LayeredPanel._create_control