Class FixedPerVarTracker

java.lang.Object
ai.djl.training.tracker.FixedPerVarTracker
All Implemented Interfaces:
ParameterTracker

public class FixedPerVarTracker extends Object implements ParameterTracker
FixedPerVarTracker is an implementation of Tracker which returns a fixed value.
See Also:
  • Constructor Details

  • Method Details

    • getNewValue

      public float getNewValue(String parameterId, int numUpdate)
      Fetches the value after the given number of steps/updates for the parameter.
      Specified by:
      getNewValue in interface ParameterTracker
      Parameters:
      parameterId - the id of the parameter to get the new value for
      numUpdate - the total number of steps/updates
      Returns:
      this Builder
    • builder

      public static FixedPerVarTracker.Builder builder()
      Creates a builder to build a FixedPerVarTracker.
      Returns:
      a new builder