public abstract class IntegerBinaryOpVertex extends IntegerVertex implements NonProbabilistic<IntegerTensor>, VertexBinaryOp<IntegerVertex,IntegerVertex>
| Modifier and Type | Field and Description |
|---|---|
protected IntegerVertex |
left |
protected static java.lang.String |
LEFT_NAME |
protected IntegerVertex |
right |
protected static java.lang.String |
RIGHT_NAME |
| Constructor and Description |
|---|
IntegerBinaryOpVertex(IntegerVertex left,
IntegerVertex right)
A vertex that performs a user defined operation on two input vertices
|
IntegerBinaryOpVertex(long[] shape,
IntegerVertex left,
IntegerVertex right)
A vertex that performs a user defined operation on two input vertices
|
| Modifier and Type | Method and Description |
|---|---|
IntegerTensor |
calculate() |
IntegerVertex |
getLeft() |
IntegerVertex |
getRight() |
protected abstract IntegerTensor |
op(IntegerTensor l,
IntegerTensor r) |
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, unaryMinusaddChild, 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, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontradictsObservationgetObservedValue, isObserved, observe, unobserveprotected final IntegerVertex left
protected final IntegerVertex right
protected static final java.lang.String LEFT_NAME
protected static final java.lang.String RIGHT_NAME
public IntegerBinaryOpVertex(IntegerVertex left, IntegerVertex right)
left - first input vertexright - second input vertexpublic IntegerBinaryOpVertex(long[] shape,
IntegerVertex left,
IntegerVertex right)
shape - the shape of the tensorleft - first input vertexright - second input vertexpublic IntegerTensor calculate()
calculate in interface NonProbabilistic<IntegerTensor>protected abstract IntegerTensor op(IntegerTensor l, IntegerTensor r)
public IntegerVertex getLeft()
getLeft in interface VertexBinaryOp<IntegerVertex,IntegerVertex>public IntegerVertex getRight()
getRight in interface VertexBinaryOp<IntegerVertex,IntegerVertex>