public abstract class GraphVertex
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
GraphVertex() |
Modifier and Type | Method and Description |
---|---|
abstract GraphVertex |
clone() |
abstract boolean |
equals(java.lang.Object o) |
abstract InputType |
getOutputType(int layerIndex,
InputType... vertexInputs)
Determine the type of output for this GraphVertex, given the specified inputs.
|
abstract int |
hashCode() |
abstract GraphVertex |
instantiate(ComputationGraph graph,
java.lang.String name,
int idx,
org.nd4j.linalg.api.ndarray.INDArray paramsView,
boolean initializeParams)
Create a
GraphVertex instance, for the given computation graph,
given the configuration instance. |
abstract int |
numParams(boolean backprop) |
public abstract GraphVertex clone()
clone
in class java.lang.Object
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract int numParams(boolean backprop)
public abstract GraphVertex instantiate(ComputationGraph graph, java.lang.String name, int idx, org.nd4j.linalg.api.ndarray.INDArray paramsView, boolean initializeParams)
GraphVertex
instance, for the given computation graph,
given the configuration instance.graph
- The computation graph that this GraphVertex is to be part ofname
- The name of the GraphVertex objectidx
- The index of the GraphVertexparamsView
- A view of the full parameters arrayinitializeParams
- If true: initialize the parameters. If false: make no change to the values in the paramsView arraypublic abstract InputType getOutputType(int layerIndex, InputType... vertexInputs) throws InvalidInputTypeException
layerIndex
- The index of the layer (if appropriate/necessary).vertexInputs
- The inputs to this vertexInvalidInputTypeException
- If the input type is invalid for this type of GraphVertex