Skip to content

Commit 0b178b8

Browse files
committed
update code
1 parent 3c255ad commit 0b178b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/operators/iou_similarity_op.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ limitations under the License. */
1818
namespace ops = paddle::operators;
1919
REGISTER_OP_CUDA_KERNEL(
2020
iou_similarity,
21-
ops::IOUSimilarityKernel<paddle::platform::CUDADeviceContext, float>);
21+
ops::IOUSimilarityKernel<paddle::platform::CUDADeviceContext, float>,
22+
ops::IOUSimilarityKernel<paddle::platform::CUDADeviceContext, double>);

paddle/operators/iou_similarity_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct IOUSimilarityFunctor {
4646
T y_min1 = x_[row_id * 4 + 1];
4747
T x_max1 = x_[row_id * 4 + 2];
4848
T y_max1 = x_[row_id * 4 + 3];
49-
for (int i = 0; i < cols_; ++i) {
49+
for (size_t i = 0; i < cols_; ++i) {
5050
T x_min2 = y_[i * 4];
5151
T y_min2 = y_[i * 4 + 1];
5252
T x_max2 = y_[i * 4 + 2];

0 commit comments

Comments
 (0)