Package jdistlib.inference.autodiff
Class ReverseModeGradient
java.lang.Object
jdistlib.inference.autodiff.ReverseModeGradient
Reusable reverse-mode value-and-gradient evaluator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluate(ReverseDifferentiableFunction function, double[] position, double[] gradient) Evaluates the function and writes its gradient without allocating tape nodes.tape()
-
Constructor Details
-
ReverseModeGradient
public ReverseModeGradient() -
ReverseModeGradient
-
-
Method Details
-
tape
-
evaluate
public double evaluate(ReverseDifferentiableFunction function, double[] position, double[] gradient) Evaluates the function and writes its gradient without allocating tape nodes.
-