public class IntegerConcatenationVertex extends NonProbabilisticInteger
ID_GENERATOR
Constructor and Description |
---|
IntegerConcatenationVertex(int dimension,
IntegerVertex... input)
A vertex that can concatenate any amount of vertices along a given dimension.
|
Modifier and Type | Method and Description |
---|---|
IntegerTensor |
getDerivedValue() |
protected IntegerTensor |
op(IntegerTensor... inputs) |
IntegerTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, observe, updateValue
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, getValue, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, pluck, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, slice, sum, 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 IntegerConcatenationVertex(int dimension, IntegerVertex... input)
dimension
- the dimension to concatenate on. This is the only dimension in which sizes may be different.input
- the input vertices to concatenatepublic IntegerTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticInteger
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomnessprotected IntegerTensor op(IntegerTensor... inputs)