Skip to content

Commit eaedaef

Browse files
committed
Remove unused kwarg in Scan.__init__
1 parent 1bb8b84 commit eaedaef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytensor/scan/op.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,6 @@ def __init__(
677677
typeConstructor: Optional[TensorConstructorType] = None,
678678
truncate_gradient: int = -1,
679679
name: Optional[str] = None,
680-
as_while: bool = False,
681680
profile: Optional[Union[str, bool]] = None,
682681
allow_gc: bool = True,
683682
strict: bool = True,
@@ -1186,7 +1185,7 @@ def make_node(self, *inputs):
11861185
# these are states that do not feed anything back in the recurrent
11871186
# computation, and hence they do not have an initial state. The scan
11881187
# node however receives an input for each such argument, the input
1189-
# in this case is just a int saying how many steps of this output we
1188+
# in this case is just an int saying how many steps of this output we
11901189
# need to store. This input does not have the same dtype, nor is it the same
11911190
# type of tensor as the output, it is always a scalar int.
11921191
new_inputs += [as_tensor_variable(ons) for ons in self.outer_nitsot(inputs)]

0 commit comments

Comments
 (0)