Enum OnnxSparseTensor.SparseTensorType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLOCK_SPARSE
      Block sparse tensor.
      COO
      COO sparse tensor.
      CSRC
      CSR or CSC sparse tensor.
      UNDEFINED
      Undefined sparse tensor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int value
      The int value mirroring OrtSparseFormat.
    • Field Detail

      • value

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

      • values

        public static OnnxSparseTensor.SparseTensorType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OnnxSparseTensor.SparseTensorType c : OnnxSparseTensor.SparseTensorType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OnnxSparseTensor.SparseTensorType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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.