deephyper.nas.operation.Connect

deephyper.nas.operation.Connect

class deephyper.nas.operation.Connect(search_space, source_node, *args, **kwargs)[source]

Bases: deephyper.nas.operation._base.Operation

Connection node.

Represents a possibility to create a connection between n1 -> n2.

Parameters
  • graph (nx.DiGraph) – a graph

  • source_node (Node) – source

Methods

init

Set the connection in the search_space graph from n1 -> n2.

__call__(value, *args, **kwargs)[source]
Parameters

tensors (list) – a list of incoming tensors.

Returns

an output tensor.

Return type

tensor

init(current_node)[source]

Set the connection in the search_space graph from n1 -> n2.