Go to the documentation of this file.
109 const Weights& input,
const int32_t* shape,
const int32_t* shapeOrder,
void* data, int32_t nbDims);
152 TENSORRTAPI
bool reorderSubBuffers(
void* input,
const int32_t* order, int32_t num, int32_t size);
bool reorderSubBuffers(void *input, const int32_t *order, int32_t num, int32_t size)
Takes an input stream and re-orders num chunks of the data given the size and order.
The TensorRT API version 1 namespace.
bool transposeSubBuffers(void *input, DataType type, int32_t num, int32_t height, int32_t width)
Transpose num sub-buffers of height * width.
DataType
The type of weights and tensors.
Definition: NvInferRuntimeCommon.h:169
bool reshapeWeights(const Weights &input, const int32_t *shape, const int32_t *shapeOrder, void *data, int32_t nbDims)
Reformat the input weights of the given shape based on the new order of dimensions.