Package ai.onnxruntime.providers
Enum NNAPIFlags
- java.lang.Object
-
- java.lang.Enum<NNAPIFlags>
-
- ai.onnxruntime.providers.NNAPIFlags
-
- All Implemented Interfaces:
OrtFlags,java.io.Serializable,java.lang.Comparable<NNAPIFlags>
public enum NNAPIFlags extends java.lang.Enum<NNAPIFlags> implements OrtFlags
Flags for the NNAPI provider.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CPU_DISABLEDCPU_ONLYUSE_FP16USE_NCHW
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Gets the underlying flag value.static NNAPIFlagsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NNAPIFlags[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_FP16
public static final NNAPIFlags USE_FP16
-
USE_NCHW
public static final NNAPIFlags USE_NCHW
-
CPU_DISABLED
public static final NNAPIFlags CPU_DISABLED
-
CPU_ONLY
public static final NNAPIFlags CPU_ONLY
-
-
Method Detail
-
values
public static NNAPIFlags[] 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 (NNAPIFlags c : NNAPIFlags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NNAPIFlags valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-