We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c14a9 commit 1eb0881Copy full SHA for 1eb0881
pytensor/link/pytorch/dispatch/scalar.py
@@ -68,10 +68,7 @@ def scalar_loop(steps, *start_and_constants):
68
*carry, done = update(*carry, *constants)
69
if torch.any(done):
70
break
71
- if len(node.outputs) == 2:
72
- return carry[0], done
73
- else:
74
- return carry, done
+ return *carry, done
75
else:
76
77
def scalar_loop(steps, *start_and_constants):
0 commit comments