Skip to content

Commit efc0fdb

Browse files
committed
Fixing axis parameter
1 parent 30354cd commit efc0fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/xtensor/shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,6 @@ def expand_dims(x, dim=None, create_index_for_new_dim=True, axis=None, **dim_kwa
505505
zip(new_dim_names, axis), key=lambda x: x[1]
506506
):
507507
target_dims.insert(insert_axis, insert_dim)
508-
x = transpose(x, *target_dims)
508+
x = Transpose(dims=tuple(target_dims))(x)
509509

510510
return x

0 commit comments

Comments
 (0)