deephyper.nas.operation.AddByPadding#

class deephyper.nas.operation.AddByPadding(search_space, stacked_nodes=None, activation=None, axis=-1)[source]#

Bases: Operation

Add operation. If tensor are of different shapes a padding will be applied before adding them.

Parameters:
  • search_space (KSearchSpace) – [description]. Defaults to None.

  • activation ([type], optional) – Activation function to apply after adding (‘relu’, tanh’, ‘sigmoid’…). Defaults to None.

  • stacked_nodes (list(Node)) – nodes to add.

  • axis (int) – axis to concatenate.

Methods

init

Preprocess the current operation.

__call__(values, **kwargs)[source]#
Parameters:

tensors (list) – a list of incoming tensors.

Returns:

an output tensor.

Return type:

tensor

init(current_node)[source]#

Preprocess the current operation.