Optimizer.GradAndVar

Stay organized with collections Save and categorize content based on your preferences.
public static class Optimizer.GradAndVar

A class that holds a paired gradient and variable.

Public Constructors

GradAndVar(Output<T> gradient, Output<T> variable)
Creates a Gradient and Variable pair

Public Methods

Output<T>
getGradient()
Gets the gradient
Output<T>
getVariable()
Gets the variable

Inherited Methods

Public Constructors

public GradAndVar (Output<T> gradient, Output<T> variable)

Creates a Gradient and Variable pair

Parameters
gradient the gradient
variable the variable

Public Methods

public Output<T> getGradient ()

Gets the gradient

Returns
  • the gradient

public Output<T> getVariable ()

Gets the variable

Returns
  • the variable