Enum Class OnnxMap.OnnxMapValueType

java.lang.Object
java.lang.Enum<OnnxMap.OnnxMapValueType>
ai.onnxruntime.OnnxMap.OnnxMapValueType
All Implemented Interfaces:
Serializable, Comparable<OnnxMap.OnnxMapValueType>, Constable
Enclosing class:
OnnxMap

public static enum OnnxMap.OnnxMapValueType extends Enum<OnnxMap.OnnxMapValueType>
An enum representing the Java type of the values stored in an OnnxMap.
  • Enum Constant Details

  • Method Details

    • values

      public static OnnxMap.OnnxMapValueType[] 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

      public static OnnxMap.OnnxMapValueType valueOf(String name)
      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
    • mapFromInt

      public static OnnxMap.OnnxMapValueType mapFromInt(int value)
      Gets the enum type from it's integer id. Used by native code.
      Parameters:
      value - The integer id.
      Returns:
      The enum instance.
    • mapFromOnnxJavaType

      public static OnnxMap.OnnxMapValueType mapFromOnnxJavaType(OnnxJavaType type)
      Maps a OnnxJavaType into a map value type. If it's not a valid map type return INVALID.
      Parameters:
      type - The Java type.
      Returns:
      The equivalent Map value type.