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 ofProgressBarwith a maximum value of 1.ProgressBar(String message, long max) Creates an instance ofProgressBarwith the given maximum value, and displays the given message.ProgressBar(String message, long max, String trailingMessage) Creates an instance ofProgressBarwith 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, waitMethods inherited from interface ai.djl.util.Progress
reset, update
-
Constructor Details
-
ProgressBar
public ProgressBar()Creates an instance ofProgressBarwith a maximum value of 1. -
ProgressBar
Creates an instance ofProgressBarwith the given maximum value, and displays the given message.- Parameters:
message- the message to be displayedmax- the maximum value
-
ProgressBar
Creates an instance ofProgressBarwith 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:
resetin interfaceai.djl.util.Progress
-
start
public void start(long initialProgress) - Specified by:
startin interfaceai.djl.util.Progress
-
end
public void end()- Specified by:
endin interfaceai.djl.util.Progress
-
increment
public void increment(long increment) - Specified by:
incrementin interfaceai.djl.util.Progress
-
update
- Specified by:
updatein interfaceai.djl.util.Progress
-