def empty_like(array):
 warnings.warn('chainer.cuda.empty_like is deprecated. Use cupy.empty_like instead.', DeprecationWarning)
 check_cuda_available()
 if isinstance(array, cupy.ndarray):
  return cupy.empty_like(array)
 return cupy.empty(array.shape, dtype=array.dtype)

def empty_like ( array ) : warnings . warn ( 'chainer.cuda.empty_like is deprecated. Use cupy.empty_like instead.' , DeprecationWarning ) check_cuda_available ( ) if isinstance ( array , cupy . ndarray ) : return cupy . empty_like ( array ) return cupy . empty ( array . shape , dtype = array . dtype )
creates an uninitialized gpu array like the given one .