Enum Class OnnxSparseTensor.SparseTensorType

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

public static enum OnnxSparseTensor.SparseTensorType extends Enum<OnnxSparseTensor.SparseTensorType>
The type of the sparse tensor.

Should be synchronized with OrtSparseFormat in the C API.

  • Enum Constant Details

  • Field Details

    • value

      public final int value
      The int value mirroring OrtSparseFormat.
  • Method Details

    • values

      public static OnnxSparseTensor.SparseTensorType[] 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 OnnxSparseTensor.SparseTensorType 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 OnnxSparseTensor.SparseTensorType mapFromInt(int value)
      Maps from an int in native land into a SparseTensorType instance.
      Parameters:
      value - The value to lookup.
      Returns:
      The enum instance.