Enum DataType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<DataType>

    public enum DataType
    extends java.lang.Enum<DataType>
    implements com.google.protobuf.ProtocolMessageEnum
     (== suppress_warning documentation-presence ==)
     LINT.IfChange
     
    Protobuf enum org.platanios.tensorflow.proto.DataType
    • Enum Constant Detail

      • DT_INVALID

        public static final DataType DT_INVALID
         Not a legal value for DataType.  Used to indicate a DataType field
         has not been set.
         
        DT_INVALID = 0;
      • DT_FLOAT

        public static final DataType DT_FLOAT
         Data types that all computation devices are expected to be
         capable to support.
         
        DT_FLOAT = 1;
      • DT_DOUBLE

        public static final DataType DT_DOUBLE
        DT_DOUBLE = 2;
      • DT_INT32

        public static final DataType DT_INT32
        DT_INT32 = 3;
      • DT_UINT8

        public static final DataType DT_UINT8
        DT_UINT8 = 4;
      • DT_INT16

        public static final DataType DT_INT16
        DT_INT16 = 5;
      • DT_INT8

        public static final DataType DT_INT8
        DT_INT8 = 6;
      • DT_STRING

        public static final DataType DT_STRING
        DT_STRING = 7;
      • DT_COMPLEX64

        public static final DataType DT_COMPLEX64
         Single-precision complex
         
        DT_COMPLEX64 = 8;
      • DT_INT64

        public static final DataType DT_INT64
        DT_INT64 = 9;
      • DT_BOOL

        public static final DataType DT_BOOL
        DT_BOOL = 10;
      • DT_QINT8

        public static final DataType DT_QINT8
         Quantized int8
         
        DT_QINT8 = 11;
      • DT_QUINT8

        public static final DataType DT_QUINT8
         Quantized uint8
         
        DT_QUINT8 = 12;
      • DT_QINT32

        public static final DataType DT_QINT32
         Quantized int32
         
        DT_QINT32 = 13;
      • DT_BFLOAT16

        public static final DataType DT_BFLOAT16
         Float32 truncated to 16 bits.  Only for cast ops.
         
        DT_BFLOAT16 = 14;
      • DT_QINT16

        public static final DataType DT_QINT16
         Quantized int16
         
        DT_QINT16 = 15;
      • DT_QUINT16

        public static final DataType DT_QUINT16
         Quantized uint16
         
        DT_QUINT16 = 16;
      • DT_UINT16

        public static final DataType DT_UINT16
        DT_UINT16 = 17;
      • DT_COMPLEX128

        public static final DataType DT_COMPLEX128
         Double-precision complex
         
        DT_COMPLEX128 = 18;
      • DT_HALF

        public static final DataType DT_HALF
        DT_HALF = 19;
      • DT_RESOURCE

        public static final DataType DT_RESOURCE
        DT_RESOURCE = 20;
      • DT_VARIANT

        public static final DataType DT_VARIANT
         Arbitrary C++ data types
         
        DT_VARIANT = 21;
      • DT_UINT32

        public static final DataType DT_UINT32
        DT_UINT32 = 22;
      • DT_UINT64

        public static final DataType DT_UINT64
        DT_UINT64 = 23;
      • DT_FLOAT_REF

        public static final DataType DT_FLOAT_REF
         Do not use!  These are only for parameters.  Every enum above
         should have a corresponding value below (verified by types_test).
         
        DT_FLOAT_REF = 101;
      • DT_DOUBLE_REF

        public static final DataType DT_DOUBLE_REF
        DT_DOUBLE_REF = 102;
      • DT_INT32_REF

        public static final DataType DT_INT32_REF
        DT_INT32_REF = 103;
      • DT_UINT8_REF

        public static final DataType DT_UINT8_REF
        DT_UINT8_REF = 104;
      • DT_INT16_REF

        public static final DataType DT_INT16_REF
        DT_INT16_REF = 105;
      • DT_INT8_REF

        public static final DataType DT_INT8_REF
        DT_INT8_REF = 106;
      • DT_STRING_REF

        public static final DataType DT_STRING_REF
        DT_STRING_REF = 107;
      • DT_COMPLEX64_REF

        public static final DataType DT_COMPLEX64_REF
        DT_COMPLEX64_REF = 108;
      • DT_INT64_REF

        public static final DataType DT_INT64_REF
        DT_INT64_REF = 109;
      • DT_BOOL_REF

        public static final DataType DT_BOOL_REF
        DT_BOOL_REF = 110;
      • DT_QINT8_REF

        public static final DataType DT_QINT8_REF
        DT_QINT8_REF = 111;
      • DT_QUINT8_REF

        public static final DataType DT_QUINT8_REF
        DT_QUINT8_REF = 112;
      • DT_QINT32_REF

        public static final DataType DT_QINT32_REF
        DT_QINT32_REF = 113;
      • DT_BFLOAT16_REF

        public static final DataType DT_BFLOAT16_REF
        DT_BFLOAT16_REF = 114;
      • DT_QINT16_REF

        public static final DataType DT_QINT16_REF
        DT_QINT16_REF = 115;
      • DT_QUINT16_REF

        public static final DataType DT_QUINT16_REF
        DT_QUINT16_REF = 116;
      • DT_UINT16_REF

        public static final DataType DT_UINT16_REF
        DT_UINT16_REF = 117;
      • DT_COMPLEX128_REF

        public static final DataType DT_COMPLEX128_REF
        DT_COMPLEX128_REF = 118;
      • DT_HALF_REF

        public static final DataType DT_HALF_REF
        DT_HALF_REF = 119;
      • DT_RESOURCE_REF

        public static final DataType DT_RESOURCE_REF
        DT_RESOURCE_REF = 120;
      • DT_VARIANT_REF

        public static final DataType DT_VARIANT_REF
        DT_VARIANT_REF = 121;
      • DT_UINT32_REF

        public static final DataType DT_UINT32_REF
        DT_UINT32_REF = 122;
      • DT_UINT64_REF

        public static final DataType DT_UINT64_REF
        DT_UINT64_REF = 123;
      • UNRECOGNIZED

        public static final DataType UNRECOGNIZED
    • Field Detail

      • DT_INVALID_VALUE

        public static final int DT_INVALID_VALUE
         Not a legal value for DataType.  Used to indicate a DataType field
         has not been set.
         
        DT_INVALID = 0;
        See Also:
        Constant Field Values
      • DT_FLOAT_VALUE

        public static final int DT_FLOAT_VALUE
         Data types that all computation devices are expected to be
         capable to support.
         
        DT_FLOAT = 1;
        See Also:
        Constant Field Values
      • DT_DOUBLE_VALUE

        public static final int DT_DOUBLE_VALUE
        DT_DOUBLE = 2;
        See Also:
        Constant Field Values
      • DT_STRING_VALUE

        public static final int DT_STRING_VALUE
        DT_STRING = 7;
        See Also:
        Constant Field Values
      • DT_COMPLEX64_VALUE

        public static final int DT_COMPLEX64_VALUE
         Single-precision complex
         
        DT_COMPLEX64 = 8;
        See Also:
        Constant Field Values
      • DT_QINT8_VALUE

        public static final int DT_QINT8_VALUE
         Quantized int8
         
        DT_QINT8 = 11;
        See Also:
        Constant Field Values
      • DT_QUINT8_VALUE

        public static final int DT_QUINT8_VALUE
         Quantized uint8
         
        DT_QUINT8 = 12;
        See Also:
        Constant Field Values
      • DT_QINT32_VALUE

        public static final int DT_QINT32_VALUE
         Quantized int32
         
        DT_QINT32 = 13;
        See Also:
        Constant Field Values
      • DT_BFLOAT16_VALUE

        public static final int DT_BFLOAT16_VALUE
         Float32 truncated to 16 bits.  Only for cast ops.
         
        DT_BFLOAT16 = 14;
        See Also:
        Constant Field Values
      • DT_QINT16_VALUE

        public static final int DT_QINT16_VALUE
         Quantized int16
         
        DT_QINT16 = 15;
        See Also:
        Constant Field Values
      • DT_QUINT16_VALUE

        public static final int DT_QUINT16_VALUE
         Quantized uint16
         
        DT_QUINT16 = 16;
        See Also:
        Constant Field Values
      • DT_UINT16_VALUE

        public static final int DT_UINT16_VALUE
        DT_UINT16 = 17;
        See Also:
        Constant Field Values
      • DT_COMPLEX128_VALUE

        public static final int DT_COMPLEX128_VALUE
         Double-precision complex
         
        DT_COMPLEX128 = 18;
        See Also:
        Constant Field Values
      • DT_RESOURCE_VALUE

        public static final int DT_RESOURCE_VALUE
        DT_RESOURCE = 20;
        See Also:
        Constant Field Values
      • DT_VARIANT_VALUE

        public static final int DT_VARIANT_VALUE
         Arbitrary C++ data types
         
        DT_VARIANT = 21;
        See Also:
        Constant Field Values
      • DT_UINT32_VALUE

        public static final int DT_UINT32_VALUE
        DT_UINT32 = 22;
        See Also:
        Constant Field Values
      • DT_UINT64_VALUE

        public static final int DT_UINT64_VALUE
        DT_UINT64 = 23;
        See Also:
        Constant Field Values
      • DT_FLOAT_REF_VALUE

        public static final int DT_FLOAT_REF_VALUE
         Do not use!  These are only for parameters.  Every enum above
         should have a corresponding value below (verified by types_test).
         
        DT_FLOAT_REF = 101;
        See Also:
        Constant Field Values
      • DT_DOUBLE_REF_VALUE

        public static final int DT_DOUBLE_REF_VALUE
        DT_DOUBLE_REF = 102;
        See Also:
        Constant Field Values
      • DT_INT32_REF_VALUE

        public static final int DT_INT32_REF_VALUE
        DT_INT32_REF = 103;
        See Also:
        Constant Field Values
      • DT_UINT8_REF_VALUE

        public static final int DT_UINT8_REF_VALUE
        DT_UINT8_REF = 104;
        See Also:
        Constant Field Values
      • DT_INT16_REF_VALUE

        public static final int DT_INT16_REF_VALUE
        DT_INT16_REF = 105;
        See Also:
        Constant Field Values
      • DT_INT8_REF_VALUE

        public static final int DT_INT8_REF_VALUE
        DT_INT8_REF = 106;
        See Also:
        Constant Field Values
      • DT_STRING_REF_VALUE

        public static final int DT_STRING_REF_VALUE
        DT_STRING_REF = 107;
        See Also:
        Constant Field Values
      • DT_COMPLEX64_REF_VALUE

        public static final int DT_COMPLEX64_REF_VALUE
        DT_COMPLEX64_REF = 108;
        See Also:
        Constant Field Values
      • DT_INT64_REF_VALUE

        public static final int DT_INT64_REF_VALUE
        DT_INT64_REF = 109;
        See Also:
        Constant Field Values
      • DT_BOOL_REF_VALUE

        public static final int DT_BOOL_REF_VALUE
        DT_BOOL_REF = 110;
        See Also:
        Constant Field Values
      • DT_QINT8_REF_VALUE

        public static final int DT_QINT8_REF_VALUE
        DT_QINT8_REF = 111;
        See Also:
        Constant Field Values
      • DT_QUINT8_REF_VALUE

        public static final int DT_QUINT8_REF_VALUE
        DT_QUINT8_REF = 112;
        See Also:
        Constant Field Values
      • DT_QINT32_REF_VALUE

        public static final int DT_QINT32_REF_VALUE
        DT_QINT32_REF = 113;
        See Also:
        Constant Field Values
      • DT_BFLOAT16_REF_VALUE

        public static final int DT_BFLOAT16_REF_VALUE
        DT_BFLOAT16_REF = 114;
        See Also:
        Constant Field Values
      • DT_QINT16_REF_VALUE

        public static final int DT_QINT16_REF_VALUE
        DT_QINT16_REF = 115;
        See Also:
        Constant Field Values
      • DT_QUINT16_REF_VALUE

        public static final int DT_QUINT16_REF_VALUE
        DT_QUINT16_REF = 116;
        See Also:
        Constant Field Values
      • DT_UINT16_REF_VALUE

        public static final int DT_UINT16_REF_VALUE
        DT_UINT16_REF = 117;
        See Also:
        Constant Field Values
      • DT_COMPLEX128_REF_VALUE

        public static final int DT_COMPLEX128_REF_VALUE
        DT_COMPLEX128_REF = 118;
        See Also:
        Constant Field Values
      • DT_HALF_REF_VALUE

        public static final int DT_HALF_REF_VALUE
        DT_HALF_REF = 119;
        See Also:
        Constant Field Values
      • DT_RESOURCE_REF_VALUE

        public static final int DT_RESOURCE_REF_VALUE
        DT_RESOURCE_REF = 120;
        See Also:
        Constant Field Values
      • DT_VARIANT_REF_VALUE

        public static final int DT_VARIANT_REF_VALUE
        DT_VARIANT_REF = 121;
        See Also:
        Constant Field Values
      • DT_UINT32_REF_VALUE

        public static final int DT_UINT32_REF_VALUE
        DT_UINT32_REF = 122;
        See Also:
        Constant Field Values
      • DT_UINT64_REF_VALUE

        public static final int DT_UINT64_REF_VALUE
        DT_UINT64_REF = 123;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static DataType[] 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 (DataType c : DataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataType 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
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static DataType valueOf​(int value)
        Deprecated.
        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:
        value - 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
      • forNumber

        public static DataType forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<DataType> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static DataType valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        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:
        desc - 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