Missed TensorFlow World? Check out the recap. Learn more

tf.contrib.rnn.TimeReversedFusedRNN

View source on GitHub

Class TimeReversedFusedRNN

This is an adaptor to time-reverse a FusedRNNCell.

Inherits From: FusedRNNCell

For 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)

__init__

View source

__init__(cell)

Methods

__call__

View source

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