|
_fork(self)
Fork nodes that require it, reference all other nodes. |
|
|
|
_join(self,
forked_node)
Join the required nodes from the forked node into this FlowNode. |
|
|
|
use_execute_fork(self)
Return True if node requires a fork / join even during execution. |
|
|
Inherited from unreachable.newobject :
__long__ ,
__native__ ,
__nonzero__ ,
__unicode__ ,
next
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
|
|
__init__(self,
flow,
input_dim=None,
output_dim=None,
dtype=None)
Wrap the given flow into this node. |
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_train_seq(self)
Return a training sequence containing all training phases. |
|
|
|
|
|
|
|
|
|
|
|
copy(self,
protocol=None)
Return a copy of this node. |
|
|
|
execute(self,
x,
*args,
**kwargs)
Process the data contained in `x`. |
|
|
|
|
|
is_invertible(self)
Return True if the node can be inverted, False otherwise. |
|
|
|
is_trainable(self)
Return True if the node can be trained, False otherwise. |
|
|
|
|
|
fork(self)
Return a new instance of this node class for remote training. |
|
|
|
join(self,
forked_node)
Absorb the trained node from a fork into this parent node. |
|
|
|
|
|
__call__(self,
x,
*args,
**kwargs)
Calling an instance of Node is equivalent to calling
its execute method. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_refcast(self,
x)
Helper function to cast arrays to the internal dtype. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is_training(self)
Return True if the node is in the training phase,
False otherwise. |
|
|
|
save(self,
filename,
protocol=-1)
Save a pickled serialization of the node to filename .
If filename is None, return a string. |
|
|
|
set_dtype(self,
t)
Set internal structures' dtype. |
|
|
|
|
|
|
|
|
|
train(self,
x,
*args,
**kwargs)
Update the internal structures according to the input data x . |
|
|