public class GenericTakeVertex<T> extends UnaryOpVertex<Tensor<T>,Tensor<T>>
INPUT_NAME, inputVertex
Constructor and Description |
---|
GenericTakeVertex(Vertex<Tensor<T>> inputVertex,
long... index)
A vertex that extracts a scalar at a given index
|
Modifier and Type | Method and Description |
---|---|
long[] |
getIndex() |
protected Tensor<T> |
op(Tensor<T> input) |
calculate, getInputVertex
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, loadValue, observe, observeOwnValue, print, print, removeLabel, save, saveValue, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observe, unobserve