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