Skip to content

Commit a806088

Browse files
committed
Fixed issue #890 in reshape() function.
1 parent f56bd7a commit a806088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_reshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ 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 not in "cCfF":
9090
raise ValueError(
9191
f"Keyword 'order' not recognized. Expecting 'C' or 'F', got {order}"
9292
)

0 commit comments

Comments
 (0)