Skip to content

Commit

Permalink
Make NV_TENSORRT_MAJOR comparison consistent in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjung-avt committed Oct 8, 2021
1 parent 4b1e7b2 commit f49f1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/yolo_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ namespace nvinfer1
}
}

#if NV_TENSORRT_MAJOR == 8
#if NV_TENSORRT_MAJOR >= 8
int32_t YoloLayerPlugin::enqueue(int32_t batchSize, void const* const* inputs, void* const* outputs, void* workspace, cudaStream_t stream) NOEXCEPT
#else
#else // NV_TENSORRT_MAJOR < 8
int YoloLayerPlugin::enqueue(int batchSize, const void*const * inputs, void** outputs, void* workspace, cudaStream_t stream)
#endif
#endif // NV_TENSORRT_MAJOR
{
forwardGpu((const float* const*)inputs, (float*)outputs[0], stream, batchSize);
return 0;
Expand Down

0 comments on commit f49f1f7

Please sign in to comment.