Hi, AastaLLL,
I’m writing SSD on TX2 based on plugins within TensorRT 3.0. It crashed before conv4_3_norm_mbox_loc_perm with “Segmentation fault (core dumped)”, How can i fix it?
tail of the output
//=====================================================================================
[>>>>LAYER>>>>] conv4_3_norm isplugin 1
[>>>>LAYER>>>>] conv4_3_norm isplugin 1
[>>>>OUPUT>>>>] conv4_3_norm weights 512 0 1
13.2522 13.2542 13.2535 13.2536 13.2382 13.2538 13.25 13.2522 13.2539 13.2535
[>>>>LAYER>>>>] conv4_3_norm_mbox_loc isplugin 0
[>>>>LAYER>>>>] conv4_3_norm_mbox_loc_perm isplugin 1
[>>>>LAYER>>>>] conv4_3_norm_mbox_loc_perm isplugin 1
Segmentation fault (core dumped)
//=====================================================================================
Following are my code:
// =====================================================================================
else if (!strcmp(layerName, “conv4_3_norm”))
{
assert(mNormalize == nullptr);
assert((nbWeights != 0) && (weights != nullptr));
bool acrossSpatial = false;
bool channelShared = false;
float eps = 1e-5;
// scales → weights
mNormalize = std::unique_ptr<INvPlugin, decltype(nvPluginDeleter)>(createSSDNormalizePlugin(weights, acrossSpatial, channelShared, eps), nvPluginDeleter);
return mNormalize.get();
}
else if (!strcmp(layerName, “conv4_3_norm_mbox_loc_perm”))
{
assert(mConv4BLPermute == nullptr);
Quadruple permuteOrder = {{0, 2, 3, 1}};
mConv4BLPermute = std::unique_ptr<INvPlugin, decltype(nvPluginDeleter)>(createSSDPermutePlugin(permuteOrder), nvPluginDeleter);
return mConv4BLPermute.get();
}