public class GenericSliceVertex<T> extends UnaryOpVertex<Tensor<T>,Tensor<T>>
inputVertex
ID_GENERATOR
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 |
---|---|
protected Tensor<T> |
op(Tensor<T> input) |
Tensor<T> |
sample(KeanuRandom random) |
calculate
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
public Tensor<T> sample(KeanuRandom random)