Skip to content

Commit 5452ddd

Browse files
authored
Update recurrent.py
yapf
1 parent 791430c commit 5452ddd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tensorlayer/layers/recurrent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ def forward(self, inputs, sequence_length=None, initial_state=None, **kwargs):
247247
"but got an actual length of a sequence %d" % i
248248
)
249249

250-
# Since sequence_length is not passed into computational graph when build a static model, we force sequence_length to be not None to get dynamic RNN.
251-
# We test this code that sequence_length is not passed to the model whatever it is, which induce a lower accuracy for training and validation
252250
sequence_length = tl.layers.retrieve_seq_length_op3(inputs)
253251

254252
sequence_length = [i - 1 if i >= 1 else 0 for i in sequence_length]

0 commit comments

Comments
 (0)