Skip to content

Commit 791430c

Browse files
authored
Update recurrent.py
fix yapf
1 parent 6c3b732 commit 791430c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tensorlayer/layers/recurrent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,8 @@ 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-
'''
251-
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.
252-
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
253-
'''
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
254252
sequence_length = tl.layers.retrieve_seq_length_op3(inputs)
255253

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

0 commit comments

Comments
 (0)