public class ConcatenationVertex extends NonProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
ConcatenationVertex(int dimension,
DoubleVertex... input)
A vertex that can concatenate any amount of vertices along a given dimension.
|
Modifier and Type | Method and Description |
---|---|
protected DualNumber |
calculateDualNumber(java.util.Map<Vertex,DualNumber> dualNumbers) |
DoubleTensor |
getDerivedValue() |
protected DoubleTensor |
op(DoubleTensor... inputs) |
DoubleTensor |
sample(KeanuRandom random) |
dLogPdf, isProbabilistic, logPdf, observe, updateValue
abs, acos, asin, atan, atan2, ceil, cos, div, div, divideBy, divideBy, dLogPdf, dLogPdf, exp, floor, getDualNumber, getValue, lambda, log, logPdf, logPdf, matrixMultiply, minus, minus, multiply, multiply, observe, observe, pluck, plus, plus, pow, pow, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, tan, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public ConcatenationVertex(int dimension, DoubleVertex... input)
dimension
- the dimension to concatenate on. This is the only dimension in which sizes may be different.input
- the input vertices to concatenatepublic DoubleTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticDouble
protected DualNumber calculateDualNumber(java.util.Map<Vertex,DualNumber> dualNumbers)
calculateDualNumber
in class DoubleVertex
public DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomnessprotected DoubleTensor op(DoubleTensor... inputs)