#NEWLINE# def ones( shape , dtype = numpy . float32 , stream = None ) : #NEWLINE# #INDENT# 'Creates a zero-filled :class:`cupy.ndarray` object.\n\n    This function is equivalent to ``full(shape, 1, dtype, stream)``.\n\n    ' #NEWLINE# warnings . warn ( 'chainer.cuda.ones is deprecated. Use cupy.ones instead.' , DeprecationWarning ) #NEWLINE# check_cuda_available ( ) #NEWLINE# assert ( stream is None ) #NEWLINE# return cupy . ones ( shape , dtype = dtype )