@Namespace(value="nvinfer1") public static enum nvinfer.DataType extends Enum<nvinfer.DataType>
Enum Constant and Description |
---|
kBOOL
8-bit boolean.
|
kFLOAT
32-bit floating point format.
|
kFP8
Signed 8-bit floating point with
1 sign bit, 4 exponent bits, 3 mantissa bits, and exponent-bias 7.
|
kHALF
IEEE 16-bit floating-point format.
|
kINT32
Signed 32-bit integer format.
|
kINT8
Signed 8-bit integer representing a quantized floating-point value.
|
kUINT8
Unsigned 8-bit integer format.
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
nvinfer.DataType |
intern() |
String |
toString() |
static nvinfer.DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static nvinfer.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final nvinfer.DataType kFLOAT
public static final nvinfer.DataType kHALF
public static final nvinfer.DataType kINT8
public static final nvinfer.DataType kINT32
public static final nvinfer.DataType kBOOL
public static final nvinfer.DataType kUINT8
public static final nvinfer.DataType kFP8
public static nvinfer.DataType[] values()
for (nvinfer.DataType c : nvinfer.DataType.values()) System.out.println(c);
public static nvinfer.DataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic nvinfer.DataType intern()
public String toString()
toString
in class Enum<nvinfer.DataType>
Copyright © 2024. All rights reserved.