Package org.deeplearning4j.parallelism
Enum ParallelWrapper.TrainingMode
- java.lang.Object
-
- java.lang.Enum<ParallelWrapper.TrainingMode>
-
- org.deeplearning4j.parallelism.ParallelWrapper.TrainingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ParallelWrapper.TrainingMode>
- Enclosing class:
- ParallelWrapper
public static enum ParallelWrapper.TrainingMode extends Enum<ParallelWrapper.TrainingMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGING
Averaging every X epochs will be appliedCUSTOM
This option assumes use of GradientsAccumulator with any MessageHandlerSHARED_GRADIENTS
Models within ParallelWrapper instance will share gradients updates
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParallelWrapper.TrainingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParallelWrapper.TrainingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVERAGING
public static final ParallelWrapper.TrainingMode AVERAGING
Averaging every X epochs will be applied
-
SHARED_GRADIENTS
public static final ParallelWrapper.TrainingMode SHARED_GRADIENTS
Models within ParallelWrapper instance will share gradients updates
-
CUSTOM
public static final ParallelWrapper.TrainingMode CUSTOM
This option assumes use of GradientsAccumulator with any MessageHandler
-
-
Method Detail
-
values
public static ParallelWrapper.TrainingMode[] 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 (ParallelWrapper.TrainingMode c : ParallelWrapper.TrainingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParallelWrapper.TrainingMode 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
-
-