duan8/yolov7/include/macros.h
Wang Xinyu fcdf274119 Refactor yolov7 (#1153)
* use cmake 3.10

* refactor yolov7 code

* refactor yolov7 parse_args

* remove anchor definition
2022-11-26 20:41:43 +08:00

30 lines
484 B
C

#ifndef __MACROS_H
#define __MACROS_H
#include "NvInfer.h"
#ifdef API_EXPORTS
#if defined(_MSC_VER)
#define API __declspec(dllexport)
#else
#define API __attribute__((visibility("default")))
#endif
#else
#if defined(_MSC_VER)
#define API __declspec(dllimport)
#else
#define API
#endif
#endif // API_EXPORTS
#if NV_TENSORRT_MAJOR >= 8
#define TRT_NOEXCEPT noexcept
#define TRT_CONST_ENQUEUE const
#else
#define TRT_NOEXCEPT
#define TRT_CONST_ENQUEUE
#endif
#endif // __MACROS_H