public class GenericSliceVertex<T> extends UnaryOpVertex<Tensor<T>,Tensor<T>>
INPUT_NAME, inputVertex
Constructor and Description |
---|
GenericSliceVertex(Vertex<Tensor<T>> inputVertex,
int dimension,
int index)
Takes the slice along a given dimension and index of a vertex
|
Modifier and Type | Method and Description |
---|---|
int |
getDimension() |
int |
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