using leaky relu in Tensorflow
If alpha < 1 (it should be), you can use tf.maximum(x, alpha * x)
How can I change G_h1 = tf.nn.relu(tf.matmul(z, G_W1) + G_b1) to leaky relu? I have tried looping over the tensor using max(value, 0,01*value) but I get TypeError: Using a tf.Tensor as a Python bool is not allowed. 
I also tried to find the source code on relu on Tensorflow github so that I can modify it to leaky relu but I couldn't find it..