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