Skip to content

Commit de4b40a

Browse files
committed
Adjust docstrings in _copy_utils
1 parent 87c256e commit de4b40a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dpctl/tensor/_copy_utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ def _copy_from_usm_ndarray_to_usm_ndarray(dst, src):
350350

351351

352352
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+
"""
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

377381
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'
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

402407
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'
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

Comments
 (0)