TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.rnn.HighwayWrapper

View source on GitHub

Class HighwayWrapper

RNNCell wrapper that adds highway connection on cell input and output.

Inherits From: RNNCell

Based on:

R. K. Srivastava, K. Greff, and J. Schmidhuber, "Highway networks", arXiv preprint arXiv:1505.00387, 2015. https://arxiv.org/abs/1505.00387

__init__

View source

__init__(
    cell,
    couple_carry_transform_gates=True,
    carry_bias_init=1.0
)

Constructs a HighwayWrapper for cell.

Args:

  • cell: An instance of RNNCell.
  • couple_carry_transform_gates: boolean, should the Carry and Transform gate be coupled.
  • carry_bias_init: float, carry gates bias initialization.

Properties

graph

DEPRECATED FUNCTION

output_size

scope_name

state_size

Methods

get_initial_state

View source

get_initial_state(
    inputs=None,
    batch_size=None,
    dtype=None
)

zero_state

View source

zero_state(
    batch_size,
    dtype
)