public class SumVertex extends DoubleUnaryOpVertex
inputVertex
Constructor and Description |
---|
SumVertex(DoubleVertex inputVertex)
Performs a sum across all dimensions
|
SumVertex(DoubleVertex inputVertex,
int[] overDimensions)
Performs a sum across specified dimensions.
|
Modifier and Type | Method and Description |
---|---|
protected PartialDerivatives |
forwardModeAutoDifferentiation(PartialDerivatives derivativeOfParentWithRespectToInputs) |
protected DoubleTensor |
op(DoubleTensor value) |
java.util.Map<Vertex,PartialDerivatives> |
reverseModeAutoDifferentiation(PartialDerivatives derivativeOfOutputsWithRespectToSelf) |
calculate, forwardModeAutoDifferentiation, sample
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, sum, take, tan, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getIndentation, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, removeLabel, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
getDerivativeWrtLatents
public SumVertex(DoubleVertex inputVertex, int[] overDimensions)
inputVertex
- the vertex to have its values summedoverDimensions
- dimensions to sum overpublic SumVertex(DoubleVertex inputVertex)
inputVertex
- the vertex to have its values summedprotected DoubleTensor op(DoubleTensor value)
op
in class DoubleUnaryOpVertex
protected PartialDerivatives forwardModeAutoDifferentiation(PartialDerivatives derivativeOfParentWithRespectToInputs)
forwardModeAutoDifferentiation
in class DoubleUnaryOpVertex
public java.util.Map<Vertex,PartialDerivatives> reverseModeAutoDifferentiation(PartialDerivatives derivativeOfOutputsWithRespectToSelf)
reverseModeAutoDifferentiation
in interface Differentiable
reverseModeAutoDifferentiation
in class DoubleVertex