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 cd678ef commit 1865de9Copy full SHA for 1865de9
pytensor/link/pytorch/dispatch/scalar.py
@@ -80,10 +80,7 @@ def scalar_loop(steps, *start_and_constants):
80
*carry, done = update(*carry, *constants)
81
if torch.any(done):
82
break
83
- if len(node.outputs) == 2:
84
- return carry[0], done
85
- else:
86
- return carry, done
+ return *carry, done
87
else:
88
89
def scalar_loop(steps, *start_and_constants):
0 commit comments