public class IntegerSliceVertex extends IntegerUnaryOpVertex
inputVertex
ID_GENERATOR
Constructor and Description |
---|
IntegerSliceVertex(IntegerVertex inputVertex,
int dimension,
int index)
Takes the slice along a given dimension and index of a vertex
|
Modifier and Type | Method and Description |
---|---|
protected IntegerTensor |
op(IntegerTensor input) |
getDerivedValue, sample
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 IntegerSliceVertex(IntegerVertex inputVertex, int dimension, int index)
inputVertex
- the input vertexdimension
- the dimension to extract alongindex
- the index of extractionprotected IntegerTensor op(IntegerTensor input)
op
in class IntegerUnaryOpVertex