Computes leaky rectified linear element-wise.
See http://web.stanford.edu/~awni/papers/relu_hybrid_icml2013_final.pdf
const x = tf.tensor1d([-1, 2, -3, 4]);x.leakyRelu(0.1).print(); // or tf.leakyRelu(x, 0.1) Copy
const x = tf.tensor1d([-1, 2, -3, 4]);x.leakyRelu(0.1).print(); // or tf.leakyRelu(x, 0.1)
The input tensor.
Optional
The scaling factor for negative values, defaults to 0.2.
Generated using TypeDoc
Computes leaky rectified linear element-wise.
See http://web.stanford.edu/~awni/papers/relu_hybrid_icml2013_final.pdf