Skip to content

Commit f1ba359

Browse files
committed
typing fix
1 parent e9e893d commit f1ba359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nn/rec.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LSTM(_Rec):
1111
"""
1212
LSTM operating on a sequence. returns (output, final_state) tuple, where final_state is (h,c).
1313
"""
14-
def __init__(self, n_out: int, zoneout: Optional[bool] = False, **kwargs):
14+
def __init__(self, n_out: int, zoneout: bool = False, **kwargs):
1515
if zoneout:
1616
super().__init__(n_out=n_out, unit="zoneoutlstm", **kwargs)
1717
else:
@@ -30,7 +30,7 @@ class LSTMStep(_Rec):
3030
"""
3131
default_name = "lstm" # make consistent to LSTM
3232

33-
def __init__(self, n_out: int, zoneout: Optional[bool] = False, **kwargs):
33+
def __init__(self, n_out: int, zoneout: bool = False, **kwargs):
3434
if zoneout:
3535
super().__init__(n_out=n_out, unit="zoneoutlstm", **kwargs)
3636
else:

0 commit comments

Comments
 (0)