@@ -350,6 +350,10 @@ def _copy_from_usm_ndarray_to_usm_ndarray(dst, src):
350
350
351
351
352
352
def _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
+ """
353
357
st = list (X .strides )
354
358
perm = sorted (
355
359
range (X .ndim ),
@@ -375,7 +379,8 @@ def _make_empty_like_orderK(X, dt, usm_type, dev):
375
379
376
380
377
381
def _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'
379
384
380
385
For an array `x` that was obtained by permutation of a contiguous
381
386
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):
400
405
401
406
402
407
def _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'
404
410
405
411
For an array `x` that was obtained by permutation of a contiguous
406
412
array the returned array will have the same shape and the same
0 commit comments