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, unaryMinusaddChild, 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, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitwithRespectToSelfcontradictsObservationgetObservedValue, isObserved, observe, unobservepublic 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 Differentiablepublic 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 Differentiablepublic DoubleTensor calculate()
calculate in interface NonProbabilistic<DoubleTensor>protected DoubleTensor op(DoubleTensor... inputs)
public DoubleVertex[] getOperands()
public int getDimension()