Package onnx

Enum Onnx.TensorProto.DataType

    • Field Detail

      • UNDEFINED_VALUE

        public static final int UNDEFINED_VALUE
        UNDEFINED = 0;
        See Also:
        Constant Field Values
      • FLOAT_VALUE

        public static final int FLOAT_VALUE
         Basic types.
         
        FLOAT = 1;
        See Also:
        Constant Field Values
      • UINT16_VALUE

        public static final int UINT16_VALUE
         uint16_t
         
        UINT16 = 4;
        See Also:
        Constant Field Values
      • FLOAT16_VALUE

        public static final int FLOAT16_VALUE
         IEEE754 half-precision floating-point format (16 bits wide).
         This format has 1 sign bit, 5 exponent bits, and 10 mantissa bits.
         
        FLOAT16 = 10;
        See Also:
        Constant Field Values
      • COMPLEX64_VALUE

        public static final int COMPLEX64_VALUE
         complex with float32 real and imaginary components
         
        COMPLEX64 = 14;
        See Also:
        Constant Field Values
      • COMPLEX128_VALUE

        public static final int COMPLEX128_VALUE
         complex with float64 real and imaginary components
         
        COMPLEX128 = 15;
        See Also:
        Constant Field Values
      • BFLOAT16_VALUE

        public static final int BFLOAT16_VALUE
         Non-IEEE floating-point format based on IEEE754 single-precision
         floating-point number truncated to 16 bits.
         This format has 1 sign bit, 8 exponent bits, and 7 mantissa bits.
         
        BFLOAT16 = 16;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Onnx.TensorProto.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 (Onnx.TensorProto.DataType c : Onnx.TensorProto.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 Onnx.TensorProto.DataType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface org.nd4j.shade.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Onnx.TensorProto.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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static Onnx.TensorProto.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 org.nd4j.shade.protobuf.Internal.EnumLiteMap<Onnx.TensorProto.DataType> internalGetValueMap()
      • getValueDescriptor

        public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Onnx.TensorProto.DataType valueOf​(org.nd4j.shade.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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null