Package ai.onnxruntime
Enum Class OrtEnvironment.OrtCompiledModelCompatibility
java.lang.Object
java.lang.Enum<OrtEnvironment.OrtCompiledModelCompatibility>
ai.onnxruntime.OrtEnvironment.OrtCompiledModelCompatibility
- All Implemented Interfaces:
Serializable,Comparable<OrtEnvironment.OrtCompiledModelCompatibility>,Constable
- Enclosing class:
- OrtEnvironment
public static enum OrtEnvironment.OrtCompiledModelCompatibility
extends Enum<OrtEnvironment.OrtCompiledModelCompatibility>
Enum representing a compiled model's compatibility with a set of
OrtEpDevices.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe EP is not applicable for the model.The EP supports the model optimally.The EP supports the model, but the model would perform better if recompiled.The EP does not support the model. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Gets the native value associated with this model compatibility value.mapFromInt(int logLevel) Maps from the C API's int enum to the Java enum.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Gets the native value associated with this model compatibility value.- Returns:
- The native value.
-
mapFromInt
Maps from the C API's int enum to the Java enum.- Parameters:
logLevel- The index of the Java enum.- Returns:
- The Java enum.
-