public abstract class DoubleUnaryOpVertex extends DoubleVertex implements NonProbabilistic<DoubleTensor>, VertexUnaryOp<DoubleVertex>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INPUT_VERTEX_NAME |
protected DoubleVertex |
inputVertex |
| Constructor and Description |
|---|
DoubleUnaryOpVertex(DoubleVertex inputVertex)
A vertex that performs a user defined operation on a single input vertex
|
DoubleUnaryOpVertex(long[] shape,
DoubleVertex inputVertex)
A vertex that performs a user defined operation on a single input vertex
|
| Modifier and Type | Method and Description |
|---|---|
DoubleTensor |
calculate() |
DoubleVertex |
getInputVertex() |
protected abstract DoubleTensor |
op(DoubleTensor value) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, permute, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, saveValue, setAndCascade, setAndCascade, setValue, setValue, setWithMask, setWithMask, sigmoid, sin, slice, sum, sum, take, tan, times, times, toGreaterThanMask, toGreaterThanMask, toGreaterThanOrEqualToMask, toGreaterThanOrEqualToMask, toInteger, toLessThanMask, toLessThanMask, toLessThanOrEqualToMask, toLessThanOrEqualToMask, transpose, 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 DoubleVertex inputVertex
protected static final java.lang.String INPUT_VERTEX_NAME
public DoubleUnaryOpVertex(DoubleVertex inputVertex)
inputVertex - the input vertexpublic DoubleUnaryOpVertex(long[] shape,
DoubleVertex inputVertex)
shape - the shape of the tensorinputVertex - the input vertexpublic DoubleVertex getInputVertex()
getInputVertex in interface VertexUnaryOp<DoubleVertex>public DoubleTensor calculate()
calculate in interface NonProbabilistic<DoubleTensor>protected abstract DoubleTensor op(DoubleTensor value)