Enum InferenceMode
- java.lang.Object
-
- java.lang.Enum<InferenceMode>
-
- org.deeplearning4j.parallelism.inference.InferenceMode
-
- All Implemented Interfaces:
Serializable
,Comparable<InferenceMode>
public enum InferenceMode extends Enum<InferenceMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BATCHED
input will be included into the batch if computation device is busy, and executed immediately otherwiseINPLACE
Inference will applied in the calling thread instead of workers.SEQUENTIAL
input will be passed into the model as is
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InferenceMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static InferenceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEQUENTIAL
public static final InferenceMode SEQUENTIAL
input will be passed into the model as is
-
BATCHED
public static final InferenceMode BATCHED
input will be included into the batch if computation device is busy, and executed immediately otherwise
-
INPLACE
public static final InferenceMode INPLACE
Inference will applied in the calling thread instead of workers. Worker models will be using shared parameters on per-device basis.
-
-
Method Detail
-
values
public static InferenceMode[] 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 (InferenceMode c : InferenceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InferenceMode 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
-
-