class_docstr: Tests sequential layer.
      
docstr: Test sequential layer.
          
docstr_tok: ["Test","sequential","layer","."]
code: def test_seq_layer(self):
      """Test sequential layer."""
      layers_ = []
      layers_.append(tf.layers.Dense(100))
      layers_.append(tf.layers.Dense(200))
      seq_layer = layers.SequentialLayer(layers_)
  
      output_shape = seq_layer.compute_output_shape([None, 10])
      self.assertEqual(output_shape[1].value, 200)
  
      inputs = tf.zeros([10, 20], dtype=tf.float32)
      outputs = seq_layer(inputs)
  
      num_vars = sum(
          [len(layer.trainable_variables) for layer in layers_]
      )
      self.assertEqual(num_vars, len(seq_layer.trainable_variables))
  
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          outputs_ = sess.run(outputs)
          self.assertEqual(outputs_.shape[0], 10)
          self.assertEqual(outputs_.shape[1], 200)
  
imports: import numpy
  import tensorflow
  import tensorflow.contrib.rnn
  import texar.tf
  from texar.tf import context
  from texar.tf.hyperparams import HParams
  from texar.tf.core import layers
label_desc: Use image node_id 1 for calling the SequentialLayerTest obj's underlying member method code with example usage: obj.test_seq_layer() without return types