title: Is tf.layers.dense a single layer?
body: <p>If I just use a single layer like this:</p>
  
  <pre><code>layer = tf.layers.dense(tf_x, 1, tf.nn.relu)
  </code></pre>
  
  <p>Is this just a single layer with a single node?</p>
  
  <p>Or is it actually a set of layers (input, hidden, output) with 1 node? My network seemed to work properly with just 1 layer, so I was curious about the setup.</p>
  
  <p>Consequently, does this setup below have 2 hidden layers (are <code>layer1</code> and <code>layer2</code> here both hidden layers)? Or actually just 1 (just <code>layer 1</code>)?</p>
  
  <pre><code>layer1 = tf.layers.dense(tf_x, 10, tf.nn.relu)
  layer2 = tf.layers.dense(layer1, 1, tf.nn.relu)
  </code></pre>
  
  <p><code>tf_x</code> is my input features tensor.</p>