Skip to content

Commit 629712a

Browse files
committed
fix syntax error expand_right for python 3.10
1 parent 6c8d1a1 commit 629712a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/utils/tensor_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def expand_right(x: Tensor, n: int) -> Tensor:
1919
raise ValueError(f"Cannot expand {n} times.")
2020

2121
idx = [...] + [None] * n
22-
return x[*idx]
22+
return x[tuple(idx)]
2323

2424

2525
def expand_right_to(x: Tensor, dim: int) -> Tensor:

0 commit comments

Comments
 (0)