pub fn prelu(num_channels: Option<usize>, vs: VarBuilder<'_>) -> Result<PReLU>Expand description
Create or initialize a new PReLU layer.
This uses some default name for weights, namely "weight".
ยงArguments
num_channels- The number of channels. UseNoneto have as single trainable value andSomefor a 1D vector with the appropriate number of channels. When applying theforwardfunction, the input tensor shapesshould either be one dimension with this number of channels or ifs.len() >= 2it should haves[1]equal to this number.