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.
  • Enum Constant Details

    • NONE

      Default. Do not enable any additional compilation options.
    • ERROR_IF_NO_NODES_COMPILED

      public static final OrtModelCompilationOptions.OrtCompileApiFlags 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

      public static final OrtModelCompilationOptions.OrtCompileApiFlags 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 value
      The 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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Description copied from interface: OrtFlags
      Gets the underlying flag value.
      Specified by:
      getValue in interface OrtFlags
      Returns:
      The flag value.