public class IntegerSliceVertex extends IntegerUnaryOpVertex
INPUT_NAME, inputVertex
Constructor and Description |
---|
IntegerSliceVertex(IntegerVertex 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 IntegerTensor |
op(IntegerTensor value) |
calculate, getInputVertex
abs, concat, div, div, divideBy, divideBy, divideBy, equalTo, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, max, min, minus, minus, minus, multiply, multiply, multiply, notEqualTo, observe, observe, plus, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, sum, sum, take, times, times, toDouble, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observe, unobserve
public IntegerSliceVertex(IntegerVertex inputVertex, int dimension, int index)
inputVertex
- the input vertexdimension
- the dimension to extract alongindex
- the index of extractionprotected IntegerTensor op(IntegerTensor value)
op
in class IntegerUnaryOpVertex
public int getDimension()
public int getIndex()