public class BoolSliceVertex extends BoolUnaryOpVertex<BooleanTensor>
a
ID_GENERATOR
Constructor and Description |
---|
BoolSliceVertex(BoolVertex inputVertex,
int dimension,
int index)
Takes the slice along a given dimension and index of a vertex
|
Modifier and Type | Method and Description |
---|---|
protected BooleanTensor |
op(BooleanTensor input) |
getDerivedValue, sample
dLogPmf, isProbabilistic, logPmf, updateValue
and, dLogPmf, dLogPmf, getValue, logPmf, logPmf, not, observe, observe, or, pluck, setAndCascade, setAndCascade, setValue, setValue, slice
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public BoolSliceVertex(BoolVertex inputVertex, int dimension, int index)
inputVertex
- the input vertexdimension
- the dimension to extract alongindex
- the index of extractionprotected BooleanTensor op(BooleanTensor input)
op
in class BoolUnaryOpVertex<BooleanTensor>