@Namespace(value="nvinfer1") public static enum nvinfer.TensorFormat extends Enum<nvinfer.TensorFormat>
IPluginV2::supportsFormat(), safe::ICudaEngine::getBindingFormat()
For more information about data formats, see the topic "Data Format Description" located in the
TensorRT Developer Guide.
Enum Constant and Description |
---|
kCDHW32
Thirty-two wide channel vectorized row major format.
|
kCHW16
Sixteen wide channel vectorized row major format.
|
kCHW2
Two wide channel vectorized row major format.
|
kCHW32
Thirty-two wide channel vectorized row major format.
|
kCHW4
Four wide channel vectorized row major format.
|
kDHWC
Non-vectorized channel-last format.
|
kDHWC8
Eight channel format where C is padded to a multiple of 8.
|
kDLA_HWC4
DLA image format.
|
kDLA_LINEAR
DLA planar format.
|
kHWC
Non-vectorized channel-last format.
|
kHWC16
Sixteen channel format where C is padded to a multiple of 16.
|
kHWC8
Eight channel format where C is padded to a multiple of 8.
|
kLINEAR
Row major linear format.
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
nvinfer.TensorFormat |
intern() |
String |
toString() |
static nvinfer.TensorFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static nvinfer.TensorFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final nvinfer.TensorFormat kLINEAR
public static final nvinfer.TensorFormat kCHW2
public static final nvinfer.TensorFormat kHWC8
public static final nvinfer.TensorFormat kCHW4
public static final nvinfer.TensorFormat kCHW16
public static final nvinfer.TensorFormat kCHW32
public static final nvinfer.TensorFormat kDHWC8
public static final nvinfer.TensorFormat kCDHW32
public static final nvinfer.TensorFormat kHWC
public static final nvinfer.TensorFormat kDLA_LINEAR
public static final nvinfer.TensorFormat kDLA_HWC4
public static final nvinfer.TensorFormat kHWC16
public static final nvinfer.TensorFormat kDHWC
public static nvinfer.TensorFormat[] values()
for (nvinfer.TensorFormat c : nvinfer.TensorFormat.values()) System.out.println(c);
public static nvinfer.TensorFormat 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.TensorFormat intern()
public String toString()
toString
in class Enum<nvinfer.TensorFormat>
Copyright © 2024. All rights reserved.