public abstract class IntegerUnaryOpVertex extends IntegerVertex implements NonProbabilistic<IntegerTensor>, VertexUnaryOp<IntegerVertex>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INPUT_NAME |
protected IntegerVertex |
inputVertex |
| Constructor and Description |
|---|
IntegerUnaryOpVertex(IntegerVertex inputVertex)
A vertex that performs a user defined operation on a singe input vertex
|
IntegerUnaryOpVertex(long[] shape,
IntegerVertex inputVertex)
A vertex that performs a user defined operation on a singe input vertex
|
| Modifier and Type | Method and Description |
|---|---|
IntegerTensor |
calculate() |
IntegerVertex |
getInputVertex() |
protected abstract IntegerTensor |
op(IntegerTensor value) |
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 inputVertex
protected static final java.lang.String INPUT_NAME
public IntegerUnaryOpVertex(IntegerVertex inputVertex)
inputVertex - the input vertexpublic IntegerUnaryOpVertex(long[] shape,
IntegerVertex inputVertex)
shape - the shape of the tensorinputVertex - the input vertexpublic IntegerTensor calculate()
calculate in interface NonProbabilistic<IntegerTensor>protected abstract IntegerTensor op(IntegerTensor value)
public IntegerVertex getInputVertex()
getInputVertex in interface VertexUnaryOp<IntegerVertex>