class_docstr: RNNCell wrapper that ensures cell inputs are added to the outputs.
class_docstr_tok: ["RNNCell","wrapper","that","ensures","cell","inputs","are","added","to","the","outputs","."]
docstr: Constructs a `ResidualWrapper` for `cell`.
  
  Args:
    cell: An instance of `RNNCell`.
    residual_fn: (Optional) The function to map raw cell inputs and raw cell
      outputs to the actual cell outputs of the residual network.
      Defaults to calling nest.map_structure on (lambda i, o: i + o), inputs
        and outputs.
    **kwargs: dict of keyword arguments for base layer.
docstr_tok: ["Constructs","a","`","ResidualWrapper","`","for","`","cell","`",".","Args",":","cell",":","An","instance","of","`","RNNCell","`",".","residual_fn",":","(","Optional",")","The","function","to","map","raw","cell","inputs","and","raw","cell","outputs","to","the","actual","cell","outputs","of","the","residual","network",".","Defaults","to","calling","nest.map_structure","on","(","lambda","i",",","o",":","i","+","o",")",",","inputs","and","outputs",".","*","*","kwargs",":","dict","of","keyword","arguments","for","base","layer","."]
code: def __init__(self, cell, residual_fn=None, **kwargs):
      """Constructs a `ResidualWrapper` for `cell`.
  
      Args:
        cell: An instance of `RNNCell`.
        residual_fn: (Optional) The function to map raw cell inputs and raw cell
          outputs to the actual cell outputs of the residual network.
          Defaults to calling nest.map_structure on (lambda i, o: i + o), inputs
            and outputs.
        **kwargs: dict of keyword arguments for base layer.
      """
      super(ResidualWrapperBase, self).__init__(cell, **kwargs)
      self._residual_fn = residual_fn
  
imports: import hashlib
  import numbers
  import sys
  import types
  import warnings
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 to create a new ResidualWrapperBase object from inherited base classes: object with example: obj = ResidualWrapperBase(cell, residual_fn)