public class ApplyVertex<T extends java.lang.Number,TENSOR extends NumberTensor<T,TENSOR>,VERTEX extends NumberTensorVertex<T,TENSOR,VERTEX>> extends UnaryTensorOpVertex<T,TENSOR,VERTEX> implements NonProbabilisticVertex<TENSOR,VERTEX>, NonSaveableVertex
Modifier and Type | Field and Description |
---|---|
protected java.util.function.Function<T,T> |
op |
INPUT_NAME, inputVertex
SCALAR_SHAPE
Constructor and Description |
---|
ApplyVertex(long[] shape,
TensorVertex<T,TENSOR,VERTEX> inputVertex,
java.util.function.Function<T,T> op) |
ApplyVertex(TensorVertex<T,TENSOR,VERTEX> inputVertex,
java.util.function.Function<T,T> op) |
Modifier and Type | Method and Description |
---|---|
protected TENSOR |
op(TENSOR value) |
calculate, getInputVertex, ofType, wrap
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getLength, getObservedValue, getParents, getRank, getReference, getShape, getState, getStride, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChild, addParent, addParents, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getLength, getObservedValue, getParents, getRank, getReference, getShape, getState, getStride, getValue, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, ofType, print, print, removeLabel, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, unobserve
calculate, contradictsObservation
broadcast, diag, diagPart, elementwiseEquals, elementwiseEquals, fillTriangular, get, notEqualTo, notEqualTo, permute, reshape, slice, slice, take, trianglePart, triLower, triUpper, where
expandDims, getLength, getRank, getShape, getStride, isLengthOne, isMatrix, isScalar, isVector, moveAxis, slice, sliceAlongDimension, squeeze, swapAxis, transpose
public ApplyVertex(long[] shape, TensorVertex<T,TENSOR,VERTEX> inputVertex, java.util.function.Function<T,T> op)
protected TENSOR op(TENSOR value)
op
in class UnaryTensorOpVertex<T extends java.lang.Number,TENSOR extends NumberTensor<T,TENSOR>,VERTEX extends NumberTensorVertex<T,TENSOR,VERTEX>>