Package ai.djl.training.tracker
Class WarmUpTracker.Builder
java.lang.Object
ai.djl.training.tracker.WarmUpTracker.Builder
- Enclosing class:
- WarmUpTracker
The Builder to construct a
WarmUpTracker.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aWarmUpTrackerblock.optWarmUpBeginValue(float warmUpBeginValue) Sets the value at the beginning of warm-up mode.optWarmUpMode(WarmUpTracker.Mode warmUpMode) Sets theWarmUpTracker.Modefor theWarmUpTracker.optWarmUpSteps(int warmUpSteps) Sets the number of steps until the point the value is updated in warm-up mode.setMainTracker(Tracker mainTracker) Sets the base value.
-
Method Details
-
setMainTracker
Sets the base value.- Parameters:
mainTracker- the tracker to use after warm up ends- Returns:
- this
Builder
-
optWarmUpSteps
Sets the number of steps until the point the value is updated in warm-up mode.- Parameters:
warmUpSteps- the number of steps the value is updated in warm-up mode- Returns:
- this
Builder
-
optWarmUpBeginValue
Sets the value at the beginning of warm-up mode.- Parameters:
warmUpBeginValue- the value at the beginning of warm-up mode- Returns:
- this
Builder
-
optWarmUpMode
Sets theWarmUpTracker.Modefor theWarmUpTracker.- Parameters:
warmUpMode- theWarmUpTracker.Modeto be set- Returns:
- this
Builder
-
build
Builds aWarmUpTrackerblock.- Returns:
- the
WarmUpTrackerblock
-