#NEWLINE# def full( shape , fill_value , dtype = numpy . float32 , stream = None ) : #NEWLINE# #INDENT# 'Creates a constant-filled :class:`cupy.ndarray` object.\n\n    Args:\n        shape (tuple of ints): The shape of array.\n        fill_value: Constant to fill the array by.\n        dtype (numpy.dtype): Element type.\n        stream (cupy.cuda.Stream): CUDA stream.\n\n    Returns:\n        cupy.ndarray: Constant-filled GPU array allocated by the memory pool.\n\n    ' #NEWLINE# warnings . warn ( 'chainer.cuda.full is deprecated. Use cupy.full instead.' , DeprecationWarning ) #NEWLINE# check_cuda_available ( ) #NEWLINE# assert ( stream is None ) #NEWLINE# return cupy . full ( shape , fill_value , dtype = dtype )