Description
I want to create a plugin that support input DataType::kHALF and TensorFormat::kHWC8.
Here’s my function:
bool MyPlugin::supportsFormatCombination(
int32_t pos, const PluginTensorDesc *inOut, int32_t nbInputs, int32_t nbOutputs)
{
// input and output must have the same dataType
return inOut[pos].type == DataType::kHALF &&
inOut[pos].format == TensorFormat::kLINEAR;
}
It works fine with kLINEAR.
But when use kHWC8 instead of kLINEAR, I got error:
[04/18/2021-17:44:56] [I] [TRT] Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
[04/18/2021-17:46:21] [E] [TRT] ../rtSafe/cuda/cudaReformatRunner.cpp (251) - Assertion Error in combineDHtoH: 0 (nbSpatialDims == 3 && nbDims >= 5)
[04/18/2021-17:46:21] [E] Engine creation failed
[04/18/2021-17:46:21] [E] Engine set up failed.