Package ai.onnxruntime
Enum OrtEnvironment.OrtCompiledModelCompatibility
- java.lang.Object
-
- java.lang.Enum<OrtEnvironment.OrtCompiledModelCompatibility>
-
- ai.onnxruntime.OrtEnvironment.OrtCompiledModelCompatibility
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OrtEnvironment.OrtCompiledModelCompatibility>
- Enclosing class:
- OrtEnvironment
public static enum OrtEnvironment.OrtCompiledModelCompatibility extends java.lang.Enum<OrtEnvironment.OrtCompiledModelCompatibility>
Enum representing a compiled model's compatibility with a set ofOrtEpDevice
s.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EP_NOT_APPLICABLE
The EP is not applicable for the model.EP_SUPPORTED_OPTIMAL
The EP supports the model optimally.EP_SUPPORTED_PREFER_RECOMPILATION
The EP supports the model, but the model would perform better if recompiled.EP_UNSUPPORTED
The EP does not support the model.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Gets the native value associated with this model compatibility value.static OrtEnvironment.OrtCompiledModelCompatibility
mapFromInt(int logLevel)
Maps from the C API's int enum to the Java enum.static OrtEnvironment.OrtCompiledModelCompatibility
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OrtEnvironment.OrtCompiledModelCompatibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EP_NOT_APPLICABLE
public static final OrtEnvironment.OrtCompiledModelCompatibility EP_NOT_APPLICABLE
The EP is not applicable for the model.
-
EP_SUPPORTED_OPTIMAL
public static final OrtEnvironment.OrtCompiledModelCompatibility EP_SUPPORTED_OPTIMAL
The EP supports the model optimally.
-
EP_SUPPORTED_PREFER_RECOMPILATION
public static final OrtEnvironment.OrtCompiledModelCompatibility EP_SUPPORTED_PREFER_RECOMPILATION
The EP supports the model, but the model would perform better if recompiled.
-
EP_UNSUPPORTED
public static final OrtEnvironment.OrtCompiledModelCompatibility EP_UNSUPPORTED
The EP does not support the model.
-
-
Method Detail
-
values
public static OrtEnvironment.OrtCompiledModelCompatibility[] 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 (OrtEnvironment.OrtCompiledModelCompatibility c : OrtEnvironment.OrtCompiledModelCompatibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrtEnvironment.OrtCompiledModelCompatibility 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
-
getValue
public int getValue()
Gets the native value associated with this model compatibility value.- Returns:
- The native value.
-
mapFromInt
public static OrtEnvironment.OrtCompiledModelCompatibility mapFromInt(int logLevel)
Maps from the C API's int enum to the Java enum.- Parameters:
logLevel
- The index of the Java enum.- Returns:
- The Java enum.
-
-