Skip to content

Commit 5a1d82b

Browse files
Ch0ronomatoricardoV94
authored andcommitted
Fix unpacking
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent c1a4dcc commit 5a1d82b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pytensor/link/pytorch/dispatch/scalar.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ def scalar_loop(steps, *start_and_constants):
6868
*carry, done = update(*carry, *constants)
6969
if torch.any(done):
7070
break
71-
if len(node.outputs) == 2:
72-
return carry[0], done
73-
else:
74-
return carry, done
71+
return *carry, done
7572
else:
7673

7774
def scalar_loop(steps, *start_and_constants):

0 commit comments

Comments
 (0)