public class GenericPluckVertex<T> extends NonProbabilistic<Tensor<T>>
ID_GENERATOR
Constructor and Description |
---|
GenericPluckVertex(Vertex<? extends Tensor<T>> inputVertex,
int... index)
A vertex that extracts a scalar at a given index
|
Modifier and Type | Method and Description |
---|---|
Tensor<T> |
getDerivedValue() |
protected Tensor<T> |
op(Tensor<T> input) |
Tensor<T> |
sample(KeanuRandom random) |
dLogProb, isProbabilistic, logProb, updateValue
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 Tensor<T> getDerivedValue()
getDerivedValue
in class NonProbabilistic<Tensor<T>>
public Tensor<T> sample(KeanuRandom random)