Keraflow
Deep Learning for Python.
 All Classes Namespaces Functions Pages
keraflow.layers.base.SequentialLayer Class Reference

Class for making Sequential a Layer. More...

Inheritance diagram for keraflow.layers.base.SequentialLayer:
keraflow.layers.base.Layer

Public Member Functions

def __init__
 
def add
 Append a layer to the layers stack. More...
 
def get_output_kensor
 Get the output_kensor. More...
 
def pack_init_param
 Check keraflow.utils.generic_utils.serialize.
 
- Public Member Functions inherited from keraflow.layers.base.Layer
def __init__
 
def set_trainable_params
 Register the layer's trainable parameters. More...
 
def input_dimension
 Return the expected dimension of input tensor. More...
 
def check_input_shape
 Check if the input shape(s) are valid. More...
 
def init_param
 Initializes trainable parameter(s) of the layer. More...
 
def output
 Calculates the output tensor of the layer given the input tensor(s). More...
 
def output_shape
 Calculates the shape of the output tensor given the shape of the input tensor(s). More...
 
def support_mask
 Whether the layer supports to carry on to the output tensor the mask embedded in input tensor. More...
 
def pack_init_param
 Check keraflow.utils.generic_utils.serialize.
 
def get_tensor_shape
 Get the shape of a tensor. More...
 
def get_weights
 Gets trainable parameter name, value (numpy arrays) pairs. More...
 
def embed
 Embeds the target layer such that its trainable parameters (along with regularizers and constraints on the parameters) are treated as the host layer's parameters and are updated during traing process. More...
 
def __call__
 Feed an input kensor or multiple input kensors to the layer and outputs another Kensor. More...
 

Static Public Member Functions

def unpack_init_param
 Check keraflow.utils.generic_utils.unserialize. More...
 
- Static Public Member Functions inherited from keraflow.layers.base.Layer
def unpack_init_param
 Check keraflow.utils.generic_utils.unserialize. More...
 

Detailed Description

Class for making Sequential a Layer.

This class is inherited by Sequential. Use Sequential instead of this class.

Constructor & Destructor Documentation

def keraflow.layers.base.SequentialLayer.__init__ (   self,
  layers = [],
  kwargs 
)
Parameters
layerslist of Layer.
kwargssee Layer.__init__

Member Function Documentation

def keraflow.layers.base.SequentialLayer.add (   self,
  layer 
)

Append a layer to the layers stack.

def keraflow.layers.base.SequentialLayer.get_output_kensor (   self)

Get the output_kensor.

This requires the first layer be an Input.

def keraflow.layers.base.SequentialLayer.unpack_init_param (   init_config)
static

Check keraflow.utils.generic_utils.unserialize.

Parameters
init_configdict. The result from pack_init_param