public class ConstantDoubleVertex extends DoubleVertex implements Differentiable, NonProbabilistic<DoubleTensor>, ConstantVertex
| Constructor and Description |
|---|
ConstantDoubleVertex(double... vector) |
ConstantDoubleVertex(double constant) |
ConstantDoubleVertex(double[] data,
long[] shape) |
ConstantDoubleVertex(DoubleTensor constant) |
| Modifier and Type | Method and Description |
|---|---|
DoubleTensor |
calculate() |
PartialDerivative |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput) |
DoubleTensor |
getConstantValue() |
java.util.Map<Vertex,PartialDerivative> |
reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf) |
void |
save(NetworkSaver netSaver) |
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, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitwithRespectToSelfcontradictsObservationgetObservedValue, isObserved, observe, unobservepublic ConstantDoubleVertex(DoubleTensor constant)
public ConstantDoubleVertex(double constant)
public ConstantDoubleVertex(double... vector)
public ConstantDoubleVertex(double[] data,
long[] shape)
public PartialDerivative forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput)
forwardModeAutoDifferentiation in interface Differentiablepublic java.util.Map<Vertex,PartialDerivative> reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf)
reverseModeAutoDifferentiation in interface Differentiablepublic DoubleTensor calculate()
calculate in interface NonProbabilistic<DoubleTensor>public void save(NetworkSaver netSaver)
save in class Vertex<DoubleTensor>public DoubleTensor getConstantValue()