Skip to content

Commit 4bac157

Browse files
committed
edit for TF1.0
1 parent b77676a commit 4bac157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3265,7 +3265,7 @@ def __init__(
32653265
list_rnn_inputs = tf.unstack(self.inputs, axis=1)
32663266
except: ## TF0.12
32673267
list_rnn_inputs = tf.unpack(self.inputs, axis=1)
3268-
outputs, fw_state, bw_state = tf.nn.bidirectional_rnn(
3268+
outputs, fw_state, bw_state = tf.contrib.rnn.static_bidirectional_rnn(
32693269
cell_fw=self.fw_cell,
32703270
cell_bw=self.bw_cell,
32713271
inputs=list_rnn_inputs,

0 commit comments

Comments
 (0)