Skip to content

Commit

Permalink
Use traditional-style nameplace nesting for nvcc
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Guimaraes <[email protected]>
  • Loading branch information
a-yyg committed Aug 19, 2024
1 parent a6b0df9 commit 55cd1d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#include <cuda_runtime_api.h>
#include <curand.h>

namespace autoware::tensorrt_yolox
namespace autoware
{
namespace tensorrt_yolox
{
struct Roi
{
Expand Down Expand Up @@ -195,5 +197,6 @@ extern void multi_scale_resize_bilinear_letterbox_nhwc_to_nchw32_batch_gpu(
extern void argmax_gpu(
unsigned char * dst, float * src, int d_w, int d_h, int s_w, int s_h, int s_c, int batch,
cudaStream_t stream);
} // namespace autoware::tensorrt_yolox
} // namespace tensorrt_yolox
} // namespace autoware
#endif // AUTOWARE__TENSORRT_YOLOX__PREPROCESS_HPP_
7 changes: 5 additions & 2 deletions perception/autoware_tensorrt_yolox/src/preprocess.cu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

#define MIN(x, y) x < y ? x : y

namespace autoware::tensorrt_yolox
namespace autoware
{
namespace tensorrt_yolox
{
constexpr size_t block = 512;

Expand Down Expand Up @@ -629,4 +631,5 @@ void argmax_gpu(
N, dst, src, d_h, d_w, s_c, s_h, s_w, batch);
}
} // namespace autoware::tensorrt_yolox
} // namespace tensorrt_yolox
} // namespace autoware

0 comments on commit 55cd1d0

Please sign in to comment.