LRNLayerTrait

Trait LRNLayerTrait 

Source
pub trait LRNLayerTrait: LRNLayerTraitConst + LayerTrait {
    // Required method
    fn as_raw_mut_LRNLayer(&mut self) -> *mut c_void;

    // Provided methods
    fn set_type(&mut self, val: i32) { ... }
    fn set_size(&mut self, val: i32) { ... }
    fn set_alpha(&mut self, val: f32) { ... }
    fn set_beta(&mut self, val: f32) { ... }
    fn set_bias(&mut self, val: f32) { ... }
    fn set_norm_by_size(&mut self, val: bool) { ... }
}
Expand description

Mutable methods for crate::dnn::LRNLayer

Required Methods§

Provided Methods§

Source

fn set_type(&mut self, val: i32)

Source

fn set_size(&mut self, val: i32)

Source

fn set_alpha(&mut self, val: f32)

Source

fn set_beta(&mut self, val: f32)

Source

fn set_bias(&mut self, val: f32)

Source

fn set_norm_by_size(&mut self, val: bool)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§