deephyper.nas.operation.Operation

deephyper.nas.operation.Operation

class deephyper.nas.operation.Operation(layer: keras.engine.base_layer.Layer)[source]

Bases: object

Interface of an operation.

>>> import tensorflow as tf
>>> from deephyper.nas.space.op import Operation
>>> Operation(layer=tf.keras.layers.Dense(10))
Dense
Parameters

layer (Layer) – a tensorflow.keras.layers.Layer.

Methods

init

Preprocess the current operation.

__call__(tensors: list, seed: Optional[int] = 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.