View source on GitHub
|
Namedtuple of quantities that may be traced from tfp.math.minimize.
tfp.substrates.numpy.math.MinimizeTraceableQuantities(
step,
loss,
gradients,
parameters,
has_converged,
convergence_criterion_state,
optimizer_state,
seed
)
These are (in order):
step: intTensorindex (starting from zero) of the current optimization step.loss: floatTensorvalue returned from the user-providedloss_fn.gradients: list ofTensorgradients oflosswith respect to the parameters.parameters: list ofTensorvalues of parameters being optimized. This corresponds totrainable_variablespassed tominimize, orinitpassed tominimize_stateless.has_converged: booleanTensorof the same shape asloss_fn, withTruevalues corresponding to loss entries that have converged according to the user-provided convergence criterion. If no convergence criterion was specified, this isNone.convergence_criterion_state: structure ofTensors containing any auxiliary state (e.g., moving averages of loss or other quantities) maintained by the user-provided convergence criterion.optimizer_state: structure ofTensors containing optional state from a user-provided pure optimizer.
View source on GitHub