leakyRelu

fun <T : DType, V> NeuralNetworkDsl<T, V>.leakyRelu(negativeSlope: Float = 0.01f, id: String = "")

Adds a leakyRelu activation layer to the network.

Parameters

negativeSlope

Controls the angle of the negative slope in LeakyReLU

id

Optional identifier for the layer