Skip to content

Commit e5629ca

Browse files
committed
fix try except pass issue.
1 parent 3c450db commit e5629ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorlayer/layers/recurrent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def __init__(
338338
try:
339339
cell_init_args.pop('state_is_tuple')
340340
except Exception:
341-
pass
341+
logging.warning("pop state_is_tuple fails.")
342342

343343
self.inputs = layer.outputs
344344

@@ -1030,7 +1030,7 @@ def __init__(
10301030
try:
10311031
cell_init_args.pop('state_is_tuple')
10321032
except Exception:
1033-
pass
1033+
logging.warning("pop state_is_tuple fails.")
10341034
self.inputs = layer.outputs
10351035

10361036
logging.info("DynamicRNNLayer %s: n_hidden:%d, in_dim:%d in_shape:%s cell_fn:%s dropout:%s n_layer:%d" %
@@ -1273,7 +1273,7 @@ def __init__(
12731273
try:
12741274
cell_init_args.pop('state_is_tuple')
12751275
except Exception:
1276-
pass
1276+
logging.warning("pop state_is_tuple fails.")
12771277
self.inputs = layer.outputs
12781278

12791279
logging.info("BiDynamicRNNLayer %s: n_hidden:%d in_dim:%d in_shape:%s cell_fn:%s dropout:%s n_layer:%d" %
@@ -1551,7 +1551,7 @@ def __init__(
15511551
try:
15521552
cell_init_args.pop('state_is_tuple')
15531553
except Exception:
1554-
pass
1554+
logging.warning("pop state_is_tuple fails.")
15551555
# self.inputs = layer.outputs
15561556
logging.info(" [**] Seq2Seq %s: n_hidden:%d cell_fn:%s dropout:%s n_layer:%d" % (self.name, n_hidden, cell_fn.__name__, dropout, n_layer))
15571557

0 commit comments

Comments
 (0)