Package ai.djl.training.util
Class ProgressBar
java.lang.Object
ai.djl.training.util.ProgressBar
- All Implemented Interfaces:
ai.djl.util.Progress
ProgressBar
is an implementation of Progress
. It can be used to display the
progress of a task in the form a bar.-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance ofProgressBar
with a maximum value of 1.ProgressBar
(String message, long max) Creates an instance ofProgressBar
with the given maximum value, and displays the given message.ProgressBar
(String message, long max, String trailingMessage) Creates an instance ofProgressBar
with the given maximum value, and displays the given message. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ai.djl.util.Progress
reset, update
-
Constructor Details
-
ProgressBar
public ProgressBar()Creates an instance ofProgressBar
with a maximum value of 1. -
ProgressBar
Creates an instance ofProgressBar
with the given maximum value, and displays the given message.- Parameters:
message
- the message to be displayedmax
- the maximum value
-
ProgressBar
Creates an instance ofProgressBar
with the given maximum value, and displays the given message.- Parameters:
message
- the message to be displayedmax
- the maximum valuetrailingMessage
- the trailing message to be shown
-
-
Method Details
-
reset
- Specified by:
reset
in interfaceai.djl.util.Progress
-
start
public void start(long initialProgress) - Specified by:
start
in interfaceai.djl.util.Progress
-
end
public void end()- Specified by:
end
in interfaceai.djl.util.Progress
-
increment
public void increment(long increment) - Specified by:
increment
in interfaceai.djl.util.Progress
-
update
- Specified by:
update
in interfaceai.djl.util.Progress
-