public class BooleanSliceVertex extends BooleanUnaryOpVertex<BooleanTensor>
a, INPUT_NAME
Constructor and Description |
---|
BooleanSliceVertex(Vertex<BooleanTensor> inputVertex,
int dimension,
long index)
Takes the slice along a given dimension and index of a vertex
|
Modifier and Type | Method and Description |
---|---|
int |
getDimension() |
long |
getIndex() |
protected BooleanTensor |
op(BooleanTensor value) |
calculate, getA
and, and, and, assertTrue, assertTrue, concat, equalTo, getValue, loadValue, not, not, notEqualTo, observe, observe, or, or, or, reshape, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, take
addChild, 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, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observe, unobserve
public BooleanSliceVertex(Vertex<BooleanTensor> inputVertex, int dimension, long index)
inputVertex
- the input vertexdimension
- the dimension to extract alongindex
- the index of extractionprotected BooleanTensor op(BooleanTensor value)
op
in class BooleanUnaryOpVertex<BooleanTensor>
public int getDimension()
public long getIndex()