Struct leaf::layers::container::sequential::Sequential
[−]
[src]
pub struct Sequential<B: IBackend + LayerOps<f32>> { // some fields omitted }
Sequential Layer
Methods
impl<B: IBackend + LayerOps<f32> + 'static> Sequential<B>
fn empty() -> Sequential<B>
Create a empty Sequential container layer.
fn from_config(backend: Rc<B>, config: &SequentialConfig) -> Sequential<B>
Create a Sequential layer from a SequentialConfig.
fn init_layers(&mut self, backend: Rc<B>, in_config: &SequentialConfig)
Initializes a sequential container.
Sets up the structure of the sequential container. It reads the supplied SequentialConfig, connects the input and output blobs of each layer and determines if the backpropagation has to be executed for each tensor and layer.