public class GenericTakeVertex<T> extends GenericTensorUnaryOpVertex<T,T>
INPUT_NAME, inputVertex| Constructor and Description |
|---|
GenericTakeVertex(Vertex<GenericTensor<T>> inputVertex,
long... index)
A vertex that extracts a scalar at a given index
|
| Modifier and Type | Method and Description |
|---|---|
long[] |
getIndex() |
protected GenericTensor<T> |
op(GenericTensor<T> input) |
calculate, getInputVertexslice, takeaddChild, 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, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontradictsObservationgetObservedValue, isObserved, observe, unobservepublic GenericTakeVertex(Vertex<GenericTensor<T>> inputVertex, long... index)
inputVertex - the input vertexindex - the index of extractionprotected GenericTensor<T> op(GenericTensor<T> input)
op in class GenericTensorUnaryOpVertex<T,T>public long[] getIndex()