public class BooleanTakeVertex extends BooleanUnaryOpVertex<BooleanTensor>
a, INPUT_NAME
Constructor and Description |
---|
BooleanTakeVertex(Vertex<BooleanTensor> inputVertex,
long... index)
A vertex that extracts a scalar at a given index
|
Modifier and Type | Method and Description |
---|---|
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 BooleanTakeVertex(Vertex<BooleanTensor> inputVertex, long... index)
inputVertex
- the input vertex to extract fromindex
- the index to extract atprotected BooleanTensor op(BooleanTensor value)
op
in class BooleanUnaryOpVertex<BooleanTensor>
public long[] getIndex()