Skip to content

Commit 05c8923

Browse files
vtavanandgrigorian
andauthored
Update dpctl/tensor/_print.py
Co-authored-by: ndgrigorian <46709016+ndgrigorian@users.noreply.github.com>
1 parent cb3e15c commit 05c8923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def usm_ndarray_repr(
482482

483483
options = get_print_options()
484484
threshold = options["threshold"]
485-
if x.size == 0 and x.shape != (0,) or x.size > threshold:
485+
if (x.size == 0 and x.shape != (0,)) or x.size > threshold:
486486
shape_str = f"shape={x.shape}"
487487
shape_str = _move_to_next_line(shape_str, s, line_width, prefix)
488488
else:

0 commit comments

Comments
 (0)