Enum SleepyTrainingListener.SleepMode
- java.lang.Object
-
- java.lang.Enum<SleepyTrainingListener.SleepMode>
-
- org.deeplearning4j.optimize.listeners.SleepyTrainingListener.SleepMode
-
- All Implemented Interfaces:
Serializable
,Comparable<SleepyTrainingListener.SleepMode>
- Enclosing class:
- SleepyTrainingListener
public static enum SleepyTrainingListener.SleepMode extends Enum<SleepyTrainingListener.SleepMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SleepyTrainingListener.SleepMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SleepyTrainingListener.SleepMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARK
public static final SleepyTrainingListener.SleepMode PARK
In this mode parkNanos() call will be used, to make process really idle
-
SLEEP
public static final SleepyTrainingListener.SleepMode SLEEP
In this mode Thread.sleep() call will be used, to make sleep traceable via profiler
-
BUSY
public static final SleepyTrainingListener.SleepMode BUSY
Busy-lock will be used, to guarantee 100% thread use
-
-
Method Detail
-
values
public static SleepyTrainingListener.SleepMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SleepyTrainingListener.SleepMode c : SleepyTrainingListener.SleepMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SleepyTrainingListener.SleepMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-