@@ -350,6 +350,10 @@ def _copy_from_usm_ndarray_to_usm_ndarray(dst, src):
350350
351351
352352def _make_empty_like_orderK (X , dt , usm_type , dev ):
353+ """
354+ Returns empty array with shape and strides like `X`, with dtype `dt`,
355+ USM type `usm_type`, on device `dev`.
356+ """
353357 st = list (X .strides )
354358 perm = sorted (
355359 range (X .ndim ),
@@ -375,7 +379,8 @@ def _make_empty_like_orderK(X, dt, usm_type, dev):
375379
376380
377381def _empty_like_orderK (X , dt , usm_type = None , dev = None ):
378- """Returns empty array like `x`, using order='K'
382+ """
383+ Returns empty array like `x`, using order='K'
379384
380385 For an array `x` that was obtained by permutation of a contiguous
381386 array the returned array will have the same shape and the same
@@ -400,7 +405,8 @@ def _empty_like_orderK(X, dt, usm_type=None, dev=None):
400405
401406
402407def _from_numpy_empty_like_orderK (X , dt , usm_type , dev ):
403- """Returns empty usm_ndarray like NumPy array `x`, using order='K'
408+ """
409+ Returns empty usm_ndarray like NumPy array `x`, using order='K'
404410
405411 For an array `x` that was obtained by permutation of a contiguous
406412 array the returned array will have the same shape and the same
0 commit comments