title: How can i use "leaky_relu" as an activation in Tensorflow "tf.layers.dense"?
body: <p>Using Tensorflow 1.5, I am trying to add <code>leaky_relu</code> activation to the output of a dense layer while I am able to change the <code>alpha</code> of <code>leaky_relu</code> (check <a href="https://www.tensorflow.org/api_docs/python/tf/nn/leaky_relu" rel="noreferrer">here</a>). I know I can do it as follows:</p>
  
  <pre><code>output = tf.layers.dense(input, n_units)
  output = tf.nn.leaky_relu(output, alpha=0.01)
  </code></pre>
  
  <p>I was wondering if there is a way to write this in one line as we can do for <code>relu</code>:</p>
  
  <p><code>ouput = tf.layers.dense(input, n_units, activation=tf.nn.relu)</code></p>
  
  <p>I tried the following but I get an error:</p>
  
  <pre><code>output = tf.layers.dense(input, n_units, activation=tf.nn.leaky_relu(alpha=0.01))
  TypeError: leaky_relu() missing 1 required positional argument: 'features'
  </code></pre>
  
  <p>Is there a way to do this?</p>