Package 

Enum DType

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum DType
    
                        

    Codes representing tensor data types.

    Warning: These APIs are experimental and subject to change without notice

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BITS16

      Code for dtype ScalarType::Bits16

      BITS8

      Code for dtype ScalarType::Bits8

      BITS4X2

      Code for dtype ScalarType::Bits4x2

      BITS2X4

      Code for dtype ScalarType::Bits2x4

      BITS1X8

      Code for dtype ScalarType::Bits1x8

      QINT2X4

      Code for dtype ScalarType::QUInt2x4

      QINT4X2

      Code for dtype ScalarType::QUInt4x2

      BFLOAT16

      Code for dtype ScalarType::BFloat16

      QINT32

      Code for dtype ScalarType::QInt32

      QUINT8

      Code for dtype ScalarType::QUInt8

      QINT8

      Code for dtype ScalarType::QInt8

      BOOL

      Code for dtype ScalarType::Bool

      COMPLEX_DOUBLE

      Code for dtype ScalarType::ComplexDouble

      COMPLEX_FLOAT

      Code for dtype ScalarType::ComplexFloat

      COMPLEX_HALF

      Code for dtype ScalarType::ComplexHalf

      DOUBLE

      Code for dtype ScalarType::Double

      FLOAT

      Code for dtype ScalarType::Float

      HALF

      Code for dtype ScalarType::Half

      INT64

      Code for dtype ScalarType::Long

      INT32

      Code for dtype ScalarType::Int

      INT16

      Code for dtype ScalarType::Short

      INT8

      Code for dtype ScalarType::Char

      UINT8

      Code for dtype ScalarType::Byte

    • Method Summary

      Modifier and Type Method Description
      static DType fromJniCode(int jniCode)
      static Array<DType> values()
      static DType valueOf(String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait