TensorFlow 2.0 Beta is available Learn more

tf.contrib.rnn.FusedRNNCellAdaptor

View source on GitHub

Class FusedRNNCellAdaptor

This is an adaptor for RNNCell classes to be used with FusedRNNCell.

Inherits From: FusedRNNCell

__init__

View source

__init__(
    cell,
    use_dynamic_rnn=False
)

Initialize the adaptor.

Args:

  • cell: an instance of a subclass of a rnn_cell.RNNCell.
  • use_dynamic_rnn: whether to use dynamic (or static) RNN.

Methods

__call__

View source

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