Struct juice::layer::LayerConfig[][src]

pub struct LayerConfig {
    pub name: String,
    pub layer_type: LayerType,
    pub outputs: Vec<String>,
    pub inputs: Vec<String>,
    pub params: Vec<WeightConfig>,
    pub propagate_down: Vec<bool>,
}
Expand description

Layer Configuration Struct

Fields

name: String

The name of the Layer

layer_type: LayerType

The type of the Layer

outputs: Vec<String>

The name for each output Blob

inputs: Vec<String>

The name for each input Blob

params: Vec<WeightConfig>

Specifies training configuration for each weight blob.

propagate_down: Vec<bool>

Specifies on which inputs the backpropagation should be skipped. The size must be either 0 or equal to the number of inputs.

Implementations

Creates a new LayerConfig

Returns the Name of the requested output Blob

Returns the number of output Blobs

Add a output by name

Returns the Name of the requested input Blob

Returns the number of input Blobs

Add a input by name

Returns the requested WeightConfig

Returns the number of params

Check if the configured parameters make sense.

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.