class_docstr: Tests the ExtendedMultiRNNCell
class_docstr_tok: ["Tests","the","ExtendedMultiRNNCell"]
code: def test_without_residuals(self):
      inputs = tf.constant(np.random.randn(1, 2))
      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)
      ):
          standard_cell = tf.contrib.rnn.MultiRNNCell(
              [tf.contrib.rnn.GRUCell(2) for _ in range(2)],
              state_is_tuple=True,
          )
          res_standard = standard_cell(inputs, state, scope="standard")
  
          test_cell = rnn_cell.ExtendedMultiRNNCell(
              [tf.contrib.rnn.GRUCell(2) for _ in range(2)]
          )
          res_test = test_cell(inputs, state, scope="test")
  
      with self.test_session() as sess:
          sess.run([tf.global_variables_initializer()])
          (
              res_standard_,
              res_test_,
          ) = sess.run([res_standard, res_test])
  
      # Make sure it produces the same results as the standard cell
      self.assertAllClose(res_standard_[0], res_test_[0])
      self.assertAllClose(res_standard_[1][0], res_test_[1][0])
      self.assertAllClose(res_standard_[1][1], res_test_[1][1])
  
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 1 for calling the ExtendedMultiRNNCellTest obj's underlying member method code with example usage: obj.test_without_residuals() without return types