Skip to content

Commit 45d0fb4

Browse files
Merge pull request #915 from IntelPython/fix_issue_890
Fixed issue #890 in reshape() function.
2 parents 7b368a1 + b54d783 commit 45d0fb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpctl/tensor/_reshape.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def reshape(X, newshape, order="C", copy=None):
8686
raise TypeError
8787
if not isinstance(newshape, (list, tuple)):
8888
newshape = (newshape,)
89-
if order not in ["C", "F"]:
89+
if order in "cfCF":
90+
order = order.upper()
91+
else:
9092
raise ValueError(
9193
f"Keyword 'order' not recognized. Expecting 'C' or 'F', got {order}"
9294
)

0 commit comments

Comments
 (0)