Skip to content

Commit 4ebdd15

Browse files
author
Ian Schweer
committed
Remove compiler disable
1 parent 2a9ffd3 commit 4ebdd15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/link/pytorch/dispatch/scalar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def pytorch_funcify_Softplus(op, node, **kwargs):
6767

6868
@pytorch_funcify.register(ScalarLoop)
6969
def pytorch_funicify_ScalarLoop(op, node, **kwargs):
70-
update = pytorch_funcify(op.fgraph)
70+
update = pytorch_funcify(op.fgraph, **kwargs)
7171
state_length = op.nout
7272
if op.is_while:
7373

@@ -96,4 +96,4 @@ def scalar_loop(steps, *start_and_constants):
9696
else:
9797
return carry
9898

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

0 commit comments

Comments
 (0)