Support for YOLOv5 4.0
Added support for YOLOv5 4.0
This commit is contained in:
18
external/yolov5-4.0/nvdsinfer_custom_impl_Yolo/cuda_utils.h
vendored
Normal file
18
external/yolov5-4.0/nvdsinfer_custom_impl_Yolo/cuda_utils.h
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef TRTX_CUDA_UTILS_H_
|
||||
#define TRTX_CUDA_UTILS_H_
|
||||
|
||||
#include <cuda_runtime_api.h>
|
||||
|
||||
#ifndef CUDA_CHECK
|
||||
#define CUDA_CHECK(callstr)\
|
||||
{\
|
||||
cudaError_t error_code = callstr;\
|
||||
if (error_code != cudaSuccess) {\
|
||||
std::cerr << "CUDA error " << error_code << " at " << __FILE__ << ":" << __LINE__;\
|
||||
assert(0);\
|
||||
}\
|
||||
}
|
||||
#endif // CUDA_CHECK
|
||||
|
||||
#endif // TRTX_CUDA_UTILS_H_
|
||||
|
||||
Reference in New Issue
Block a user