deephyper.nas.node.MirrorNode#

class deephyper.nas.node.MirrorNode(node)[source]#

Bases: OperationNode

A MirrorNode is a node which reuse an other, it enable the reuse of tf.keras layers. This node will not add operations to choose.

Parameters:

node (Node) – The targeted node to mirror.

>>> from deephyper.nas.space.node import VariableNode, MirrorNode
>>> from deephyper.nas.space.op.op1d import Dense
>>> vnode = VariableNode()
>>> vnode.add_op(Dense(10))
>>> vnode.add_op(Dense(20))
>>> mnode = MirrorNode(vnode)
>>> vnode.set_op(0)
>>> vnode.op
Dense_10
>>> mnode.op
Dense_10

Methods

create_tensor

verify_operation

Attributes

id

num

op