Skip to content

Commit 1865de9

Browse files
Ch0ronomatoricardoV94
authored andcommitted
Fix unpacking
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent cd678ef commit 1865de9

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
@@ -80,10 +80,7 @@ def scalar_loop(steps, *start_and_constants):
8080
*carry, done = update(*carry, *constants)
8181
if torch.any(done):
8282
break
83-
if len(node.outputs) == 2:
84-
return carry[0], done
85-
else:
86-
return carry, done
83+
return *carry, done
8784
else:
8885

8986
def scalar_loop(steps, *start_and_constants):

0 commit comments

Comments
 (0)