Type TimeReversedFusedRNN
Namespace tensorflow.contrib.rnn
Parent PythonObjectContainer
Interfaces FusedRNNCell, ITimeReversedFusedRNN
This is an adaptor to time-reverse a FusedRNNCell. For example,
Show Example
cell = tf.compat.v1.nn.rnn_cell.BasicRNNCell(10)
fw_lstm = tf.contrib.rnn.FusedRNNCellAdaptor(cell, use_dynamic_rnn=True)
bw_lstm = tf.contrib.rnn.TimeReversedFusedRNN(fw_lstm)
fw_out, fw_state = fw_lstm(inputs)
bw_out, bw_state = bw_lstm(inputs)