Enum juice::weight::FillerType[][src]

pub enum FillerType {
    Constant {
        value: f32,
    },
    Glorot {
        input_size: usize,
        output_size: usize,
    },
}
Expand description

Enum for specifing the type of Filler.

Variants

Constant

Fills the weight blob with a constant value (all values are the same).

Fields of Constant

value: f32

The value that will be used to fill the blob.

Glorot

Fills the weight blobs based on the paper:

[Bengio and Glorot 2010]: Understanding the difficulty of training deep feedforward neural networks.

Also known as Xavier filler.

Fields of Glorot

input_size: usize

Number of input nodes for each output.

output_size: usize

Number of output nodes for each input.

Implementations

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.

Directly use the Constant Filler.

Directly use the Glorot Filler.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.