Skip to content

Commit a8b78de

Browse files
committed
fix build
1 parent d644d27 commit a8b78de

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

csrc/mmdeploy/apis/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ add_subdirectory(java)
99
if (MMDEPLOY_BUILD_SDK_PYTHON_API)
1010
add_subdirectory(python)
1111
endif ()
12-

csrc/mmdeploy/device/cuda/cuda_device.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Copyright (c) OpenMMLab. All rights reserved.
22

3+
#ifndef MMDEPLOY_SRC_DEVICE_CUDA_CUDE_DEVICE_H_
4+
#define MMDEPLOY_SRC_DEVICE_CUDA_CUDE_DEVICE_H_
5+
36
#include <any>
47
#include <mutex>
58

@@ -196,3 +199,5 @@ class CudaDeviceGuard {
196199
};
197200

198201
} // namespace mmdeploy::framework
202+
203+
#endif // MMDEPLOY_SRC_DEVICE_CUDA_CUDE_DEVICE_H_

csrc/mmdeploy/net/trt/trt_net.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "mmdeploy/core/model.h"
99
#include "mmdeploy/core/module.h"
1010
#include "mmdeploy/core/utils/formatter.h"
11-
#include "mmdeploy/device/cuda/cuda_device.h"
1211

1312
namespace mmdeploy::framework {
1413

demo/python/to_triton_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def parse_args():
3838
dict(name='mask', dtype=pb.TYPE_INT32, dims=[-1, -1]),
3939
dict(name='score', dtype=pb.TYPE_FP32, dims=[-1, -1, -1])
4040
],
41-
Restorer=[
42-
dict(name='output', dtype=pb.TYPE_FP32, dims=[-1, -1, 3])
43-
],
41+
Restorer=[dict(name='output', dtype=pb.TYPE_FP32, dims=[-1, -1, 3])],
4442
TextDetector=[],
4543
TextRecognizer=[],
4644
PoseDetector=[],

0 commit comments

Comments
 (0)