Skip to content

Commit 74f65f4

Browse files
【CUDA Kernel No.32】Add .h file for box_clip_kernel -part (#75592)
* add and include .h file for box_clip_kernel * move gpu kernel box_clip_kernel and update includes
1 parent f9b74fc commit 74f65f4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

paddle/phi/kernels/gpu/box_clip_kernel.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "paddle/phi/core/lod_utils.h"
2222
#include "paddle/phi/core/mixed_vector.h"
2323
#include "paddle/phi/kernels/funcs/math_function.h"
24+
#include "paddle/phi/kernels/gpu/box_clip_kernel.h"
2425
#include "paddle/phi/kernels/impl/box_clip_kernel_impl.h"
2526

2627
namespace phi {
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#pragma once
16+
17+
#include "paddle/phi/core/dense_tensor.h"
18+
19+
namespace phi {
20+
21+
template <typename T, typename Context>
22+
void GPUBoxClipKernel(const Context &dev_ctx,
23+
const DenseTensor &input,
24+
const DenseTensor &im_info,
25+
DenseTensor *output);
26+
} // namespace phi

0 commit comments

Comments
 (0)