Skip to content

Commit 9d37f5d

Browse files
authored
Fix a bug that causes error when batchSize > 1 (#441)
Signed-off-by: Jeffery Zhao <[email protected]>
1 parent f5e8b8c commit 9d37f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/batchTilePlugin/batchTilePlugin.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ DataType BatchTilePlugin::getOutputDataType(int index, const nvinfer1::DataType*
9595

9696
int BatchTilePlugin::enqueue(int batchSize, const void* const* inputs, void** outputs, void*, cudaStream_t stream)
9797
{
98-
float* output = reinterpret_cast<float*>(outputs[0]);
98+
char* output = reinterpret_cast<char*>(outputs[0]);
9999
// expand to batch size
100100
for (int i = 0; i < batchSize; i++)
101101
{
@@ -210,4 +210,4 @@ IPluginV2Ext* BatchTilePluginCreator::createPlugin(const char* name, const Plugi
210210
IPluginV2Ext* BatchTilePluginCreator::deserializePlugin(const char* name, const void* serialData, size_t serialLength)
211211
{
212212
return new BatchTilePlugin(name, serialData, serialLength);
213-
}
213+
}

0 commit comments

Comments
 (0)