public abstract class DoubleBinaryOpVertex extends VertexImpl<DoubleTensor,DoubleVertex> implements DoubleVertex, NonProbabilistic<DoubleTensor>, VertexBinaryOp<Vertex<DoubleTensor,?>,Vertex<DoubleTensor,?>>
Modifier and Type | Field and Description |
---|---|
protected Vertex<DoubleTensor,?> |
left |
protected static java.lang.String |
LEFT_NAME |
protected Vertex<DoubleTensor,?> |
right |
protected static java.lang.String |
RIGHT_NAME |
SCALAR_SHAPE
Constructor and Description |
---|
DoubleBinaryOpVertex(long[] shape,
Vertex<DoubleTensor,?> left,
Vertex<DoubleTensor,?> right)
A vertex that performs a user defined operation on two vertices
|
DoubleBinaryOpVertex(Vertex<DoubleTensor,?> left,
Vertex<DoubleTensor,?> right)
A vertex that performs a user defined operation on two vertices
|
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
calculate() |
Vertex<DoubleTensor,?> |
getLeft() |
Vertex<DoubleTensor,?> |
getRight() |
protected abstract DoubleTensor |
op(DoubleTensor l,
DoubleTensor r) |
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
acos, asin, atan2, concat, cos, div, div, divideBy, divideBy, divideBy, exp, getValue, greaterThanMask, greaterThanOrEqualToMask, lambda, lambda, lessThanMask, lessThanOrEqualToMask, log, max, min, minus, minus, multiply, multiply, multiply, observe, observe, ofType, plus, plus, pow, reciprocal, reverseDiv, reverseDiv, reverseMinus, reverseMinus, setAndCascade, setAndCascade, setValue, setValue, sin, sqrt, times, times, unaryMinus, wrap
acosh, asinh, atan, atan2, atanh, ceil, choleskyDecomposition, choleskyInverse, cosh, digamma, exp2, expM1, floor, isFinite, isInfinite, isNaN, isNegativeInfinity, isPositiveInfinity, log10, log1p, log2, logAddExp, logAddExp2, logGamma, matrixDeterminant, matrixInverse, mean, mean, nanArgMax, nanArgMax, nanArgMin, nanArgMin, notNaN, replaceNaN, round, safeLogTimes, sigmoid, sinh, standardDeviation, standardize, tan, tanh, trigamma
abs, apply, argMax, argMax, argMin, argMin, clamp, cumProd, cumSum, div, equalsWithinEpsilon, greaterThan, greaterThan, greaterThanMask, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqualToMask, lessThan, lessThan, lessThanMask, lessThanOrEqual, lessThanOrEqual, lessThanOrEqualToMask, matrixMultiply, max, max, min, min, minus, plus, pow, pow, product, product, reverseDiv, reverseMinus, setWithMask, setWithMask, sign, sum, sum, tensorMultiply, times, toBoolean, toDouble, toInteger
broadcast, diag, diagPart, elementwiseEquals, elementwiseEquals, fillTriangular, get, notEqualTo, notEqualTo, permute, reshape, slice, slice, take, trianglePart, triLower, triUpper, where
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, print, print, removeLabel, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, unobserve
matrixMultiply
expandDims, getLength, getRank, getShape, getStride, isLengthOne, isMatrix, isScalar, isVector, moveAxis, slice, sliceAlongDimension, squeeze, swapAxis, transpose
contradictsObservation
protected final Vertex<DoubleTensor,?> left
protected final Vertex<DoubleTensor,?> right
protected static final java.lang.String LEFT_NAME
protected static final java.lang.String RIGHT_NAME
public DoubleBinaryOpVertex(Vertex<DoubleTensor,?> left, Vertex<DoubleTensor,?> right)
left
- a vertexright
- a vertexpublic DoubleBinaryOpVertex(long[] shape, Vertex<DoubleTensor,?> left, Vertex<DoubleTensor,?> right)
shape
- the shape of the resulting vertexleft
- a vertexright
- a vertexpublic DoubleTensor calculate()
calculate
in interface NonProbabilistic<DoubleTensor>
public Vertex<DoubleTensor,?> getLeft()
getLeft
in interface VertexBinaryOp<Vertex<DoubleTensor,?>,Vertex<DoubleTensor,?>>
public Vertex<DoubleTensor,?> getRight()
getRight
in interface VertexBinaryOp<Vertex<DoubleTensor,?>,Vertex<DoubleTensor,?>>
protected abstract DoubleTensor op(DoubleTensor l, DoubleTensor r)