neupy.layers.Concatenate

class neupy.layers.Concatenate[source]

Concatenate multiple inputs into one. Inputs will be concatenated over the specified axis (controlled with parameter axis).

Parameters:
axis : int

The axis along which the inputs will be concatenated. Default is -1.

name : str or None

Layer’s name. Can be used as a reference to specific layer. When value specified as None than name will be generated from the class name. Defaults to None

Examples

>>> from neupy.layers import *
>>> network = (Input(10) | Input(20)) >> Concatenate()
[(?, 10), (?, 20)] -> [... 3 layers ...] -> (?, 30)
Attributes:
variables : dict

Variable names and their values. Dictionary can be empty in case if variables hasn’t been created yet.

Methods

variable(value, name, shape=None, trainable=True) Initializes variable with specified values.
get_output_shape(input_shape) Computes expected output shape from the layer based on the specified input shape.
output(*inputs, **kwargs) Propagetes input through the layer. The kwargs variable might contain additional information that propages through the network.
axis = None[source]
get_output_shape(*input_shapes)[source]
options = {'axis': Option(class_name='Concatenate', value=IntProperty(name="axis")), 'name': Option(class_name='BaseLayer', value=Property(name="name"))}[source]
output(*inputs, **kwargs)[source]