Struct leaf::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>,
}

Layer Configuration Struct

Fields

The name of the Layer

The type of the Layer

The name for each output Blob

The name for each input Blob

Specifies training configuration for each weight blob.

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

Methods

impl LayerConfig
[src]

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

impl Debug for LayerConfig
[src]

Formats the value using the given formatter.

impl Clone for LayerConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more