public class GenericSliceVertex<T> extends GenericTensorUnaryOpVertex<T,T>
INPUT_NAME, inputVertex| Constructor and Description |
|---|
GenericSliceVertex(Vertex<GenericTensor<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 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 GenericSliceVertex(Vertex<GenericTensor<T>> inputVertex, int dimension, int index)
inputVertex - the input vertexdimension - the dimension to extract alongindex - the index of extractionprotected GenericTensor<T> op(GenericTensor<T> input)
op in class GenericTensorUnaryOpVertex<T,T>public int getDimension()
public int getIndex()