public class ConcatenationVertex extends DoubleVertex implements Differentiable, NonProbabilistic<DoubleTensor>
Constructor and Description |
---|
ConcatenationVertex(int dimension,
DoubleVertex... operands)
A vertex that can concatenate any amount of vertices along a given dimension.
|
ConcatenationVertex(int dimension,
Vertex[] operands) |
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
calculate() |
static PartialDerivative |
concat(java.util.List<PartialDerivative> partialsOfOperands,
java.util.List<DoubleTensor> operandValues,
int dimension) |
PartialDerivative |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput) |
int |
getDimension() |
DoubleVertex[] |
getOperands() |
protected DoubleTensor |
op(DoubleTensor... inputs) |
java.util.Map<Vertex,PartialDerivative> |
reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, permute, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, saveValue, setAndCascade, setAndCascade, setValue, setValue, setWithMask, setWithMask, sigmoid, sin, slice, sum, sum, take, tan, times, times, toGreaterThanMask, toGreaterThanMask, toGreaterThanOrEqualToMask, toGreaterThanOrEqualToMask, toInteger, toLessThanMask, toLessThanMask, toLessThanOrEqualToMask, toLessThanOrEqualToMask, transpose, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
withRespectToSelf
contradictsObservation
getObservedValue, isObserved, observe, unobserve
public ConcatenationVertex(int dimension, DoubleVertex... operands)
dimension
- the dimension to concatenate on. This is the only dimension in which sizes may be different. Negative
dimension indexing is not supported.operands
- the operands vertices to concatenatepublic ConcatenationVertex(int dimension, Vertex[] operands)
public PartialDerivative forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput)
forwardModeAutoDifferentiation
in interface Differentiable
public static PartialDerivative concat(java.util.List<PartialDerivative> partialsOfOperands, java.util.List<DoubleTensor> operandValues, int dimension)
public java.util.Map<Vertex,PartialDerivative> reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf)
reverseModeAutoDifferentiation
in interface Differentiable
public DoubleTensor calculate()
calculate
in interface NonProbabilistic<DoubleTensor>
protected DoubleTensor op(DoubleTensor... inputs)
public DoubleVertex[] getOperands()
public int getDimension()