Package ai.onnxruntime
Enum Class OrtModelCompilationOptions.OrtCompileApiFlags
java.lang.Object
java.lang.Enum<OrtModelCompilationOptions.OrtCompileApiFlags>
ai.onnxruntime.OrtModelCompilationOptions.OrtCompileApiFlags
- All Implemented Interfaces:
OrtFlags,Serializable,Comparable<OrtModelCompilationOptions.OrtCompileApiFlags>,Constable
- Enclosing class:
- OrtModelCompilationOptions
public static enum OrtModelCompilationOptions.OrtCompileApiFlags
extends Enum<OrtModelCompilationOptions.OrtCompileApiFlags>
implements OrtFlags
Flags representing options when compiling a model.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionForce compilation to return an error (ORT_FAIL) if no nodes were compiled.Force compilation to return an error (ORT_FAIL) if a file with the same filename as the output model exists.Default. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
NONE
Default. Do not enable any additional compilation options. -
ERROR_IF_NO_NODES_COMPILED
Force compilation to return an error (ORT_FAIL) if no nodes were compiled. Otherwise, a model with basic optimizations (ORT_ENABLE_BASIC) is still generated by default. -
ERROR_IF_OUTPUT_FILE_EXISTS
Force compilation to return an error (ORT_FAIL) if a file with the same filename as the output model exists. Otherwise, compilation will automatically overwrite the output file if it exists.
-
-
Field Details
-
value
public final int valueThe native value of the enum.
-
-
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()Description copied from interface:OrtFlagsGets the underlying flag value.
-