Enum leaf::weight::FillerType
[−]
[src]
pub enum FillerType { Constant { value: f32, }, Glorot { input_size: usize, output_size: usize, }, }
Enum for specifing the type of Filler.
Variants
Constant | Fills the weight blob with a constant Fields
| |||||
Glorot | Fills the weight blobs based on the paper:
Also known as Xavier filler. Fields
|
Methods
impl FillerType
fn fill(&self, weight: &mut SharedTensor<f32>)
Uses a filler as specified by this FillerType to fill the values in a SharedTensor
This filling of weights is usually done directly after creation of the weight blob.
fn fill_constant(weight: &mut SharedTensor<f32>, value: f32)
Directly use the Constant Filler.
fn fill_glorot(weight: &mut SharedTensor<f32>, num_inputs: usize, num_outputs: usize)
Directly use the Glorot Filler.