public class Operator extends java.lang.Object implements Gate
An Operator is a site for computation of data. It essentially has some inputs, performs computation on these inputs with the function it has been initialized with and writes the result of thr computation to it output links. Note that this is the Gate responsible for branching computation and the flow of gradient in the computation graph.
| Modifier and Type | Method and Description |
|---|---|
void |
backward()
Method to compute the backward
computation for this gate.
|
void |
forward()
Method to compute the forward
computation for this gate.
|
void |
initialize(Gate... gates)
Initializes the inputs of this gate using the given list of
parameters.
|
java.util.List<Link> |
inputs()
Returns the list of input links (incoming edges) for this Gate.
|
java.util.List<Link> |
outputs()
Returns the list of output links (outgoing edges) for this Gate.
|
void |
update()
Update the parmameters of this gate on
the basis of backward computation.
|
public Operator(Function function)
function - the funtion to be used for operating on the parameterspublic void initialize(Gate... gates)
gates - the gates to receive inputs frompublic java.util.List<Link> inputs()
Gatepublic java.util.List<Link> outputs()
Gatepublic void forward()
Gatepublic void backward()
Gate