Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
c6421019
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c6421019
编写于
6月 14, 2022
作者:
Z
Zhang Jun
提交者:
GitHub
6月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix compiling werror (#43337)
上级
83abec60
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
6 deletion
+6
-6
paddle/fluid/operators/detection/locality_aware_nms_op.cc
paddle/fluid/operators/detection/locality_aware_nms_op.cc
+1
-1
paddle/fluid/operators/detection/retinanet_detection_output_op.cc
...luid/operators/detection/retinanet_detection_output_op.cc
+1
-1
paddle/fluid/operators/math/softmax_impl.h
paddle/fluid/operators/math/softmax_impl.h
+2
-2
paddle/fluid/operators/shuffle_channel_op.h
paddle/fluid/operators/shuffle_channel_op.h
+1
-1
paddle/phi/kernels/impl/lerp_kernel_impl.h
paddle/phi/kernels/impl/lerp_kernel_impl.h
+1
-1
未找到文件。
paddle/fluid/operators/detection/locality_aware_nms_op.cc
浏览文件 @
c6421019
...
...
@@ -316,7 +316,7 @@ class LocalityAwareNMSKernel : public framework::OpKernel<T> {
auto
*
boxes_input
=
ctx
.
Input
<
LoDTensor
>
(
"BBoxes"
);
auto
*
scores_input
=
ctx
.
Input
<
LoDTensor
>
(
"Scores"
);
auto
*
outs
=
ctx
.
Output
<
LoDTensor
>
(
"Out"
);
auto
score_dims
=
scores_input
->
dims
();
auto
&
score_dims
=
scores_input
->
dims
();
auto
score_size
=
score_dims
.
size
();
auto
&
dev_ctx
=
ctx
.
template
device_context
<
platform
::
CPUDeviceContext
>();
...
...
paddle/fluid/operators/detection/retinanet_detection_output_op.cc
浏览文件 @
c6421019
...
...
@@ -471,7 +471,7 @@ class RetinanetDetectionOutputKernel : public framework::OpKernel<T> {
std
::
vector
<
Tensor
>
box_per_batch_list
(
boxes_list
.
size
());
std
::
vector
<
Tensor
>
score_per_batch_list
(
scores_list
.
size
());
for
(
size_t
j
=
0
;
j
<
boxes_list
.
size
();
++
j
)
{
auto
score_dims
=
scores_list
[
j
].
dims
();
const
auto
&
score_dims
=
scores_list
[
j
].
dims
();
score_per_batch_list
[
j
]
=
scores_list
[
j
].
Slice
(
i
,
i
+
1
);
score_per_batch_list
[
j
].
Resize
({
score_dims
[
1
],
score_dims
[
2
]});
box_per_batch_list
[
j
]
=
boxes_list
[
j
].
Slice
(
i
,
i
+
1
);
...
...
paddle/fluid/operators/math/softmax_impl.h
浏览文件 @
c6421019
...
...
@@ -262,7 +262,7 @@ class SoftmaxFunctor<DeviceContext, float, true, enable_if_CPU<DeviceContext>> {
public:
void
operator
()(
const
DeviceContext
&
context
,
const
int
axis_dim
,
const
framework
::
Tensor
*
X
,
framework
::
Tensor
*
Y
)
{
auto
in_dims
=
X
->
dims
();
const
auto
&
in_dims
=
X
->
dims
();
const
float
*
in_data
=
X
->
data
<
float
>
();
float
*
out_data
=
Y
->
data
<
float
>
();
const
int
kBatchDim
=
0
;
...
...
@@ -387,7 +387,7 @@ class SoftmaxGradFunctor<DeviceContext, T, enable_if_CPU<DeviceContext>> {
void
operator
()(
const
DeviceContext
&
context
,
const
int
axis_dim
,
const
framework
::
Tensor
*
y
,
const
framework
::
Tensor
*
y_grad
,
framework
::
Tensor
*
x_grad
)
{
auto
out_dims
=
y
->
dims
();
const
auto
&
out_dims
=
y
->
dims
();
constexpr
int
kBatchDim
=
0
;
constexpr
int
kClassDim
=
1
;
const
int
num_classes
=
out_dims
[
kClassDim
];
...
...
paddle/fluid/operators/shuffle_channel_op.h
浏览文件 @
c6421019
...
...
@@ -27,7 +27,7 @@ class ShuffleChannelOpKernel : public framework::OpKernel<T> {
auto
*
output
=
ctx
.
Output
<
framework
::
Tensor
>
(
"Out"
);
int
group
=
ctx
.
Attr
<
int
>
(
"group"
);
auto
input_dims
=
input
->
dims
();
const
auto
&
input_dims
=
input
->
dims
();
auto
num
=
input_dims
[
0
];
auto
channel
=
input_dims
[
1
];
auto
height
=
input_dims
[
2
];
...
...
paddle/phi/kernels/impl/lerp_kernel_impl.h
浏览文件 @
c6421019
...
...
@@ -28,7 +28,7 @@ static void LerpFunction(const Context& ctx,
DenseTensor
*
out
)
{
ctx
.
template
Alloc
<
T
>(
out
);
auto
out_dims
=
out
->
dims
();
const
auto
&
out_dims
=
out
->
dims
();
auto
x_dims
=
phi
::
funcs
::
ExtendDims2Rank
(
x
.
dims
(),
D
);
auto
y_dims
=
phi
::
funcs
::
ExtendDims2Rank
(
y
.
dims
(),
D
);
auto
w_dims
=
phi
::
funcs
::
ExtendDims2Rank
(
weight
.
dims
(),
D
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录