Skip to content

Commit

Permalink
Fix scatternd bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CarkusL authored May 1, 2021
1 parent aeba71e commit cebbe9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorrt/samples/centerpoint/ScatterNDPlugin.cu
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int ScatterNDPlugin::enqueue(int batchSize, const void* const* inputs, void** ou
int totalElems = mOutputSize[0]*channel_num;

dim3 blockSize(THREAD_NUM);
dim3 gridsize(max_index_num/channel_num/blockSize.x);
dim3 gridsize(max_index_num/blockSize.x+1);

switch (mDataType)
{
Expand Down Expand Up @@ -311,4 +311,4 @@ IPluginV2Ext* ScatterNDSamplePluginCreator::deserializePlugin(const char* name,
return new ScatterNDPlugin(name, serialData, serialLength);
}

REGISTER_TENSORRT_PLUGIN(ScatterNDSamplePluginCreator);
REGISTER_TENSORRT_PLUGIN(ScatterNDSamplePluginCreator);

0 comments on commit cebbe9a

Please sign in to comment.