public class SliceVertex extends DoubleUnaryOpVertex
inputVertex
ID_GENERATOR
Constructor and Description |
---|
SliceVertex(DoubleVertex inputVertex,
int dimension,
int index)
Takes the slice along a given dimension and index of a vertex
|
Modifier and Type | Method and Description |
---|---|
protected DualNumber |
dualOp(DualNumber dualNumber) |
protected DoubleTensor |
op(DoubleTensor value) |
calculate, calculateDualNumber, sample
abs, acos, asin, atan, atan2, ceil, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, log, matrixMultiply, minus, minus, multiply, multiply, notEqualTo, observe, observe, plus, plus, pow, pow, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, take, tan, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, sample, setAndCascade, setLabel, setParents, setParents, setValue, unobserve
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
getDualNumber, keepOnlyDifferentiableVertices
public SliceVertex(DoubleVertex inputVertex, int dimension, int index)
inputVertex
- the input vertexdimension
- the dimension to extract alongindex
- the index of extractionprotected DoubleTensor op(DoubleTensor value)
op
in class DoubleUnaryOpVertex
protected DualNumber dualOp(DualNumber dualNumber)
dualOp
in class DoubleUnaryOpVertex