Enum tch::nn::init::NonLinearity
source · pub enum NonLinearity {
ReLU,
Linear,
Sigmoid,
Tanh,
SELU,
ExplicitGain(f64),
}
Expand description
The non-linear function that follows this layer. ReLU is the recommended value.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for NonLinearity
impl Clone for NonLinearity
source§fn clone(&self) -> NonLinearity
fn clone(&self) -> NonLinearity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more