class_docstr: Tests the class
  :class:`~texar.tf.modules.networks.networks.FeedForwardNetwork`.
class_docstr_tok: ["Tests","the","class",":","class",":","`","~texar.tf.modules.networks.networks.FeedForwardNetwork","`","."]
docstr: Tests feed-forward.
          
docstr_tok: ["Tests","feed-forward","."]
code: def test_feedforward(self):
      """Tests feed-forward."""
      hparams = {
          "layers": [
              {
                  "type": "Dense",
              },
              {
                  "type": "Dense",
              },
          ]
      }
  
      nn = FeedForwardNetwork(hparams=hparams)
  
      self.assertEqual(len(nn.layers), len(hparams["layers"]))
      _ = nn(tf.ones([64, 16, 16]))
      self.assertEqual(
          len(nn.trainable_variables), len(hparams["layers"]) * 2
      )
      self.assertEqual(len(nn.layer_outputs), len(hparams["layers"]))
  
imports: import tensorflow
  from texar.tf.modules.networks.networks import FeedForwardNetwork
label_desc: Use image node_id 1 for calling the FeedForwardNetworkTest obj's underlying member method code with example usage: obj.test_feedforward() without return types