21 #include <NvInferPlugin.h>
30 class BEVPoolPlugin :
public nvinfer1::IPluginV2DynamicExt {
37 virtual nvinfer1::IPluginV2DynamicExt*
clone() const noexcept override;
39 nvinfer1::IExprBuilder& exprBuilder) noexcept override;
42 int nbOutputs) noexcept override;
44 int nbOutputs) const noexcept override;
46 const
void* const* inputs,
void* const* outputs,
void* workspace,
cudaStream_t stream) noexcept override;
54 virtual
void terminate() noexcept override;
56 virtual
void serialize(
void* buffer) const noexcept override;
57 virtual
void destroy() noexcept override;
62 std::
string mNamespace;
65 int* num_intervals_ =
nullptr;
68 class BEVPoolPluginCreator : public
nvinfer1::IPluginCreator {
70 BEVPoolPluginCreator();
71 const char* getPluginName() const noexcept override;
73 const
nvinfer1::PluginFieldCollection* getFieldNames() noexcept override;
74 nvinfer1::IPluginV2* createPlugin(const
char* name, const
nvinfer1::PluginFieldCollection* fc) noexcept override;
75 nvinfer1::IPluginV2* deserializePlugin(const
char* name, const
void* serialData,
size_t serialLength) noexcept override;
81 std::vector<
nvinfer1::PluginField> mPluginAttributes;
82 std::
string mNamespace;