I’m trying to write a priorbox layer in SSD for driveworks plugin, and the priorbox layer need to use the PriorBoxParameters from model.prototxt. However, in driveworks, the constructor of a plugin layer seems directly load from weights, as follows,
dwStatus _dwDNNPlugin_initializeFromWeights(_dwDNNPluginHandle_t* handle, const char*,
const dwDNNPluginWeights* weights, int32_t numWeights)
{
std::unique_ptr<FCPlugin> fcPlugin(new FCPlugin(weights, numWeights, 10));
*handle = reinterpret_cast<_dwDNNPluginHandle_t>(fcPlugin.release());
return DW_SUCCESS;
}
How can I pulgin the priorbox layer using this API ?