Skip to content

Commit 915a368

Browse files
committed
Removing unneded check
1 parent 260b9b6 commit 915a368

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pytensor/xtensor/rewriting/shape.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ def local_squeeze_reshape(fgraph, node):
126126
x = node.inputs[0]
127127
dim = node.op.dims
128128

129-
if dim is None:
130-
return [x]
131-
132129
x_tensor = tensor_from_xtensor(x)
133130
x_dims = x.type.dims
134131
dims_to_remove = [dim] if isinstance(dim, str) else dim

0 commit comments

Comments
 (0)