Skip to content

Commit 0905bec

Browse files
author
Ian Schweer
committed
Remove compiler disable
1 parent 007abae commit 0905bec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/link/pytorch/dispatch/scalar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def cast(x):
5555

5656
@pytorch_funcify.register(ScalarLoop)
5757
def pytorch_funicify_ScalarLoop(op, node, **kwargs):
58-
update = pytorch_funcify(op.fgraph)
58+
update = pytorch_funcify(op.fgraph, **kwargs)
5959
state_length = op.nout
6060
if op.is_while:
6161

@@ -84,4 +84,4 @@ def scalar_loop(steps, *start_and_constants):
8484
else:
8585
return carry
8686

87-
return torch.compiler.disable(scalar_loop, recursive=False)
87+
return scalar_loop

0 commit comments

Comments
 (0)