deephyper.nas.operation.AddByProjecting#
- class deephyper.nas.operation.AddByProjecting(search_space, stacked_nodes=None, activation=None, axis=-1)[source]#
Bases:
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.
axis (int) – axis to concatenate.
Methods
Preprocess the current operation.