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