def full_like(array, fill_value, stream=None):
 warnings.warn('chainer.cuda.full_like is deprecated. Use cupy.full_like instead.', DeprecationWarning)
 check_cuda_available()
 assert (stream is None)
 if isinstance(array, cupy.ndarray):
  return cupy.full_like(array, fill_value)
 return cupy.full(array.shape, fill_value, dtype=array.dtype)

def full_like ( array , fill_value , stream = None ) : warnings . warn ( 'chainer.cuda.full_like is deprecated. Use cupy.full_like instead.' , DeprecationWarning ) check_cuda_available ( ) assert ( stream is None ) if isinstance ( array , cupy . ndarray ) : return cupy . full_like ( array , fill_value ) return cupy . full ( array . shape , fill_value , dtype = array . dtype )
compatibility for numpy<1 .