class_docstr: Tests reduce pooling layer.
      
docstr: Tests :class:`texar.tf.core.MaxReducePooling1D`.
          
docstr_tok: ["Tests",":","class",":","`","texar.tf.core.MaxReducePooling1D","`","."]
code: def test_max_reduce_pooling_layer(self):
      """Tests :class:`texar.tf.core.MaxReducePooling1D`."""
      pool_layer = layers.MaxReducePooling1D()
  
      inputs = tf.random_uniform(
          [self._batch_size, self._seq_length, self._emb_dim]
      )
      output_shape = pool_layer.compute_output_shape(inputs.get_shape())
      output = pool_layer(inputs)
      output_reduce = tf.reduce_max(inputs, axis=1)
      self.assertEqual(output.get_shape(), output_shape)
      self.assertEqual(
          output.get_shape(), [self._batch_size, self._emb_dim]
      )
  
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          output_, output_reduce_ = sess.run([output, output_reduce])
          np.testing.assert_array_equal(output_, output_reduce_)
  
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 2 for calling the ReducePoolingLayerTest obj's underlying member method code with example usage: obj.test_max_reduce_pooling_layer() without return types