public static class ComputationGraphConfigurationTest.StaticInnerGraphVertex extends GraphVertex
Constructor and Description |
---|
StaticInnerGraphVertex() |
Modifier and Type | Method and Description |
---|---|
GraphVertex |
clone() |
InputType |
getOutputType(int layerIndex,
InputType... vertexInputs)
Determine the type of output for this GraphVertex, given the specified inputs.
|
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. |
int |
numParams(boolean backprop) |
equals, hashCode
public GraphVertex clone()
clone
in class GraphVertex
public int numParams(boolean backprop)
numParams
in class GraphVertex
public GraphVertex instantiate(ComputationGraph graph, java.lang.String name, int idx, org.nd4j.linalg.api.ndarray.INDArray paramsView, boolean initializeParams)
GraphVertex
GraphVertex
instance, for the given computation graph,
given the configuration instance.instantiate
in class GraphVertex
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 InputType getOutputType(int layerIndex, InputType... vertexInputs) throws InvalidInputTypeException
GraphVertex
getOutputType
in class GraphVertex
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