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 GraphVertexpublic boolean equals(Object o)
equals in class GraphVertexpublic int hashCode()
hashCode in class GraphVertexpublic int numParams(boolean backprop)
numParams in class GraphVertexpublic GraphVertex instantiate(ComputationGraph graph, String name, int idx, org.nd4j.linalg.api.ndarray.INDArray paramsView, boolean initializeParams)
GraphVertexGraphVertex instance, for the given computation graph,
given the configuration instance.instantiate in class GraphVertexgraph - 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
GraphVertexgetOutputType in class GraphVertexvertexInputs - The inputs to this vertexInvalidInputTypeException - If the input type is invalid for this type of GraphVertexCopyright © 2016. All Rights Reserved.