We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9e893d commit f1ba359Copy full SHA for f1ba359
nn/rec.py
@@ -11,7 +11,7 @@ class LSTM(_Rec):
11
"""
12
LSTM operating on a sequence. returns (output, final_state) tuple, where final_state is (h,c).
13
14
- def __init__(self, n_out: int, zoneout: Optional[bool] = False, **kwargs):
+ def __init__(self, n_out: int, zoneout: bool = False, **kwargs):
15
if zoneout:
16
super().__init__(n_out=n_out, unit="zoneoutlstm", **kwargs)
17
else:
@@ -30,7 +30,7 @@ class LSTMStep(_Rec):
30
31
default_name = "lstm" # make consistent to LSTM
32
33
34
35
36
0 commit comments