Package org.nd4j.linalg.api.memory.enums
Enum LearningPolicy
- java.lang.Object
-
- java.lang.Enum<LearningPolicy>
-
- org.nd4j.linalg.api.memory.enums.LearningPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<LearningPolicy>
public enum LearningPolicy extends Enum<LearningPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST_LOOP
This policy means - we learn during 1 cycle, and allocate workspace memory right after it's done.NONE
This policy means - no learning is assumed, WorkspaceConfiguration.initialSize value will be primary determinant for workspace sizeOVER_TIME
This policy means - we learn during multiple cycles, and allocate after WorkspaceConfiguration.cyclesBeforeInitialization or after manual call to MemoryWorkspace.initializeWorkspace
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LearningPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static LearningPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRST_LOOP
public static final LearningPolicy FIRST_LOOP
This policy means - we learn during 1 cycle, and allocate workspace memory right after it's done.
-
OVER_TIME
public static final LearningPolicy OVER_TIME
This policy means - we learn during multiple cycles, and allocate after WorkspaceConfiguration.cyclesBeforeInitialization or after manual call to MemoryWorkspace.initializeWorkspace
-
NONE
public static final LearningPolicy NONE
This policy means - no learning is assumed, WorkspaceConfiguration.initialSize value will be primary determinant for workspace size
-
-
Method Detail
-
values
public static LearningPolicy[] 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 (LearningPolicy c : LearningPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LearningPolicy 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
-
-