class_docstr: Tests the ExtendedMultiRNNCell
class_docstr_tok: ["Tests","the","ExtendedMultiRNNCell"]
docstr: Runs the cell in a session
docstr_tok: ["Runs","the","cell","in","a","session"]
code: def _test_with_residuals(self, inputs, **kwargs):
      """Runs the cell in a session"""
      inputs = tf.convert_to_tensor(inputs)
      state = (
          tf.constant(np.random.randn(1, 2)),
          tf.constant(np.random.randn(1, 2)),
      )
  
      with tf.variable_scope(
          "root", initializer=tf.constant_initializer(0.5)
      ):
          test_cell = rnn_cell.ExtendedMultiRNNCell(
              [tf.contrib.rnn.GRUCell(2) for _ in range(2)],
              residual_connections=True,
              **kwargs,
          )
          res_test = test_cell(inputs, state, scope="test")
  
      with self.test_session() as sess:
          sess.run([tf.global_variables_initializer()])
          return sess.run(res_test)
  
file_path: seq2seq/seq2seq/test/rnn_cell_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tensorflow
  from seq2seq.contrib import rnn_cell
  import numpy
label_desc: Use image node_id 2 for calling the ExtendedMultiRNNCellTest obj's underlying member method code with example usage: obj._test_with_residuals(inputs) and returns: sess