tf.contrib.rnn.TimeReversedFusedRNN

Class TimeReversedFusedRNN

Inherits From: FusedRNNCell

Defined in tensorflow/contrib/rnn/python/ops/fused_rnn_cell.py.

This is an adaptor to time-reverse a FusedRNNCell.

For example,

cell = tf.contrib.rnn.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)

__init__

__init__(cell)

Methods

__call__

__call__(
    inputs,
    initial_state=None,
    dtype=None,
    sequence_length=None,
    scope=None
)