public class InputVertex extends BaseGraphVertex
dataType, epsilon, graph, inputs, inputVertices, outputVertex, outputVertices, vertexIndex, vertexName
Constructor and Description |
---|
InputVertex(ComputationGraph graph,
String name,
int vertexIndex,
VertexIndices[] outputVertices,
DataType dataType) |
Modifier and Type | Method and Description |
---|---|
Pair<Gradient,INDArray[]> |
doBackward(boolean tbptt,
LayerWorkspaceMgr workspaceMgr)
Do backward pass
|
INDArray |
doForward(boolean training,
LayerWorkspaceMgr workspaceMgr)
Do forward pass using the stored inputs
|
Pair<INDArray,MaskState> |
feedForwardMaskArrays(INDArray[] maskArrays,
MaskState currentMaskState,
int minibatchSize) |
Layer |
getLayer()
Get the Layer (if any).
|
boolean |
hasLayer()
Whether the GraphVertex contains a
Layer object or not |
boolean |
isInputVertex()
Whether the GraphVertex is an input vertex
|
boolean |
isOutputVertex()
Whether the GraphVertex is an output vertex
|
void |
setBackpropGradientsViewArray(INDArray backpropGradientsViewArray)
|
String |
toString() |
canDoBackward, canDoForward, clear, clearVertex, getConfig, getEpsilon, getGradientsViewArray, getInputVertices, getNumInputArrays, getNumOutputConnections, getOutputVertices, getVertexIndex, getVertexName, numParams, params, paramTable, setEpsilon, setInput, setInputVertices, setLayerAsFrozen, setOutputVertices, updaterDivideByMinibatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputs, setInputs, setOutputVertex
public InputVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] outputVertices, DataType dataType)
public boolean hasLayer()
GraphVertex
Layer
object or notpublic boolean isOutputVertex()
GraphVertex
public boolean isInputVertex()
GraphVertex
isInputVertex
in interface GraphVertex
isInputVertex
in class BaseGraphVertex
public Layer getLayer()
GraphVertex
GraphVertex.hasLayer()
== falsepublic INDArray doForward(boolean training, LayerWorkspaceMgr workspaceMgr)
GraphVertex
training
- if true: forward pass at training time. If false: forward pass at test timepublic Pair<Gradient,INDArray[]> doBackward(boolean tbptt, LayerWorkspaceMgr workspaceMgr)
GraphVertex
tbptt
- If true: do backprop using truncated BPTTpublic void setBackpropGradientsViewArray(INDArray backpropGradientsViewArray)
GraphVertex
public Pair<INDArray,MaskState> feedForwardMaskArrays(INDArray[] maskArrays, MaskState currentMaskState, int minibatchSize)
public String toString()
toString
in class BaseGraphVertex
Copyright © 2020. All rights reserved.