File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ def ol_dpnp_zeros(
326
326
"""
327
327
328
328
_ndim = _ty_parse_shape (shape )
329
+ _layout = _parse_layout (order )
329
330
_dtype = _parse_dtype (dtype )
330
331
_usm_type = _parse_usm_type (usm_type ) if usm_type is not None else "device"
331
332
_device = (
@@ -334,7 +335,7 @@ def ol_dpnp_zeros(
334
335
if _ndim :
335
336
ret_ty = build_dpnp_ndarray (
336
337
_ndim ,
337
- layout = order ,
338
+ layout = _layout ,
338
339
dtype = _dtype ,
339
340
usm_type = _usm_type ,
340
341
device = _device ,
@@ -407,14 +408,15 @@ def ol_dpnp_ones(
407
408
408
409
_ndim = _ty_parse_shape (shape )
409
410
_dtype = _parse_dtype (dtype )
411
+ _layout = _parse_layout (order )
410
412
_usm_type = _parse_usm_type (usm_type ) if usm_type is not None else "device"
411
413
_device = (
412
414
_parse_device_filter_string (device ) if device is not None else "unknown"
413
415
)
414
416
if _ndim :
415
417
ret_ty = build_dpnp_ndarray (
416
418
_ndim ,
417
- layout = order ,
419
+ layout = _layout ,
418
420
dtype = _dtype ,
419
421
usm_type = _usm_type ,
420
422
device = _device ,
You can’t perform that action at this time.
0 commit comments