public class PreprocessorVertex extends GraphVertex
InputPreProcessor
to be used in a ComputationGraph
GraphVertex, without it being associated with a layer.Constructor and Description |
---|
PreprocessorVertex(InputPreProcessor preProcessor) |
PreprocessorVertex(InputPreProcessor preProcessor,
InputType outputType)
Deprecated.
This constructor (and the "InputType override" functionality previously used is no longer necessary.
|
Modifier and Type | Method and Description |
---|---|
GraphVertex |
clone() |
boolean |
equals(Object o) |
InputType |
getOutputType(InputType... vertexInputs)
Determine the type of output for this GraphVertex, given the specified inputs.
|
int |
hashCode() |
GraphVertex |
instantiate(ComputationGraph graph,
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) |
public PreprocessorVertex(InputPreProcessor preProcessor)
@Deprecated public PreprocessorVertex(InputPreProcessor preProcessor, InputType outputType)
preProcessor
- The input preprocessoroutputType
- Override for the type of output used in getOutputType(InputType...)
. This may be necessary
for the automatic addition of other processors in the network, given a custom/non-standard InputPreProcessorpublic GraphVertex clone()
clone
in class GraphVertex
public boolean equals(Object o)
equals
in class GraphVertex
public int hashCode()
hashCode
in class GraphVertex
public int numParams(boolean backprop)
numParams
in class GraphVertex
public GraphVertex instantiate(ComputationGraph graph, 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(InputType... vertexInputs) throws InvalidInputTypeException
GraphVertex
getOutputType
in class GraphVertex
vertexInputs
- The inputs to this vertexInvalidInputTypeException
- If the input type is invalid for this type of GraphVertexCopyright © 2016. All Rights Reserved.