deephyper.nas.operation.AddByProjecting#

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

Bases: deephyper.nas.operation._base.Operation

Add operation. If tensors are of different shapes a projection 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, seed=None, **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.