Skip to content

Commit

Permalink
Remove redundant mPluginNamespace in BatchedNMSPlugin
Browse files Browse the repository at this point in the history
Signed-off-by: Rajeev Rao <[email protected]>
  • Loading branch information
rajeevsrao committed Jun 17, 2020
1 parent 3afdc3c commit 177ab34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin/batchedNMSPlugin/batchedNMSPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ IPluginV2Ext* BatchedNMSPlugin::clone() const

void BatchedNMSPlugin::setPluginNamespace(const char* pluginNamespace)
{
mPluginNamespace = pluginNamespace;
mNamespace = pluginNamespace;
}

const char* BatchedNMSPlugin::getPluginNamespace() const
{
return mPluginNamespace;
return mNamespace;
}

nvinfer1::DataType BatchedNMSPlugin::getOutputDataType(
Expand Down
1 change: 0 additions & 1 deletion plugin/batchedNMSPlugin/batchedNMSPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class BatchedNMSPlugin : public IPluginV2Ext
int numPriors{};
std::string mNamespace;
bool mClipBoxes{};
const char* mPluginNamespace;
};

class BatchedNMSPluginCreator : public BaseCreator
Expand Down

0 comments on commit 177ab34

Please sign in to comment.