#NEWLINE# def full_like( array , fill_value , stream = None ) : #NEWLINE# #INDENT# 'Creates a constant-filled :class:`cupy.ndarray` object like the given array.\n\n    Args:\n        array (cupy.ndarray or numpy.ndarray): Base array.\n        fill_value: Constant value to fill the array by.\n        stream (cupy.cuda.Stream): CUDA stream.\n\n    Returns:\n        cupy.ndarray: Constant-filled array.\n\n    ' #NEWLINE# warnings . warn ( 'chainer.cuda.full_like is deprecated. Use cupy.full_like instead.' , DeprecationWarning ) #NEWLINE# check_cuda_available ( ) #NEWLINE# assert ( stream is None ) #NEWLINE# if isinstance ( array , cupy . ndarray ) : #NEWLINE# #INDENT# return cupy . full_like ( array , stream ) #NEWLINE# #UNINDENT# return cupy . full ( array . shape , fill_value , dtype = array . dtype )