Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
ae428a0a
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看板
未验证
提交
ae428a0a
编写于
3月 14, 2023
作者:
engineer1109
提交者:
GitHub
3月 14, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix -Werror=maybe-uninitialized (#51608)
上级
e34c79c7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
6 deletion
+6
-6
paddle/fluid/operators/detection/multiclass_nms_op.cc
paddle/fluid/operators/detection/multiclass_nms_op.cc
+1
-1
paddle/fluid/operators/fused/fusion_repeated_fc_relu_op.cc
paddle/fluid/operators/fused/fusion_repeated_fc_relu_op.cc
+1
-1
paddle/fluid/pybind/tensor_py.h
paddle/fluid/pybind/tensor_py.h
+1
-1
paddle/phi/kernels/cpu/matrix_nms_kernel.cc
paddle/phi/kernels/cpu/matrix_nms_kernel.cc
+1
-1
paddle/phi/kernels/cpu/multiclass_nms3_kernel.cc
paddle/phi/kernels/cpu/multiclass_nms3_kernel.cc
+1
-1
paddle/phi/kernels/sparse/cpu/sparse_utils_kernel.cc
paddle/phi/kernels/sparse/cpu/sparse_utils_kernel.cc
+1
-1
未找到文件。
paddle/fluid/operators/detection/multiclass_nms_op.cc
浏览文件 @
ae428a0a
...
@@ -361,7 +361,7 @@ class MultiClassNMSKernel : public framework::OpKernel<T> {
...
@@ -361,7 +361,7 @@ class MultiClassNMSKernel : public framework::OpKernel<T> {
auto
index
=
ctx
.
Output
<
phi
::
DenseTensor
>
(
"Index"
);
auto
index
=
ctx
.
Output
<
phi
::
DenseTensor
>
(
"Index"
);
bool
has_roisnum
=
ctx
.
HasInput
(
"RoisNum"
)
?
true
:
false
;
bool
has_roisnum
=
ctx
.
HasInput
(
"RoisNum"
)
?
true
:
false
;
auto
rois_num
=
ctx
.
Input
<
phi
::
DenseTensor
>
(
"RoisNum"
);
auto
rois_num
=
ctx
.
Input
<
phi
::
DenseTensor
>
(
"RoisNum"
);
auto
score_dims
=
scores
->
dims
(
);
auto
score_dims
=
phi
::
vectorize
<
int
>
(
scores
->
dims
()
);
auto
score_size
=
score_dims
.
size
();
auto
score_size
=
score_dims
.
size
();
auto
&
dev_ctx
=
ctx
.
template
device_context
<
phi
::
CPUContext
>();
auto
&
dev_ctx
=
ctx
.
template
device_context
<
phi
::
CPUContext
>();
...
...
paddle/fluid/operators/fused/fusion_repeated_fc_relu_op.cc
浏览文件 @
ae428a0a
...
@@ -153,7 +153,7 @@ class FusionRepeatedFCReluKernel : public framework::OpKernel<T> {
...
@@ -153,7 +153,7 @@ class FusionRepeatedFCReluKernel : public framework::OpKernel<T> {
auto
place
=
ctx
.
GetPlace
();
auto
place
=
ctx
.
GetPlace
();
int
weight_sz
=
static_cast
<
int
>
(
weights
.
size
());
int
weight_sz
=
static_cast
<
int
>
(
weights
.
size
());
auto
i_dims
=
in
->
dims
(
);
auto
i_dims
=
phi
::
vectorize
<
int
>
(
in
->
dims
()
);
const
auto
&
w_dims
=
weights
[
0
]
->
dims
();
const
auto
&
w_dims
=
weights
[
0
]
->
dims
();
phi
::
jit
::
matmul_attr_t
attr
;
phi
::
jit
::
matmul_attr_t
attr
;
attr
.
m
=
i_dims
[
0
];
attr
.
m
=
i_dims
[
0
];
...
...
paddle/fluid/pybind/tensor_py.h
浏览文件 @
ae428a0a
...
@@ -689,7 +689,7 @@ void _sliceCompute(const phi::DenseTensor *in,
...
@@ -689,7 +689,7 @@ void _sliceCompute(const phi::DenseTensor *in,
const
std
::
vector
<
int
>
&
axes
,
const
std
::
vector
<
int
>
&
axes
,
const
std
::
vector
<
int
>
&
starts
)
{
const
std
::
vector
<
int
>
&
starts
)
{
auto
&
eigen_place
=
*
ctx
.
eigen_device
();
auto
&
eigen_place
=
*
ctx
.
eigen_device
();
auto
out_dims
=
out
->
dims
(
);
auto
out_dims
=
phi
::
vectorize
<
int
>
(
out
->
dims
()
);
auto
in_dims
=
in
->
dims
();
auto
in_dims
=
in
->
dims
();
auto
offsets
=
Eigen
::
DSizes
<
Eigen
::
DenseIndex
,
D
>
();
auto
offsets
=
Eigen
::
DSizes
<
Eigen
::
DenseIndex
,
D
>
();
...
...
paddle/phi/kernels/cpu/matrix_nms_kernel.cc
浏览文件 @
ae428a0a
...
@@ -255,7 +255,7 @@ void MatrixNMSKernel(const Context& ctx,
...
@@ -255,7 +255,7 @@ void MatrixNMSKernel(const Context& ctx,
DenseTensor
*
out
,
DenseTensor
*
out
,
DenseTensor
*
index
,
DenseTensor
*
index
,
DenseTensor
*
roisnum
)
{
DenseTensor
*
roisnum
)
{
auto
score_dims
=
scores
.
dims
(
);
auto
score_dims
=
phi
::
vectorize
<
int
>
(
scores
.
dims
()
);
auto
batch_size
=
score_dims
[
0
];
auto
batch_size
=
score_dims
[
0
];
auto
num_boxes
=
score_dims
[
2
];
auto
num_boxes
=
score_dims
[
2
];
auto
box_dim
=
bboxes
.
dims
()[
2
];
auto
box_dim
=
bboxes
.
dims
()[
2
];
...
...
paddle/phi/kernels/cpu/multiclass_nms3_kernel.cc
浏览文件 @
ae428a0a
...
@@ -496,7 +496,7 @@ void MultiClassNMSKernel(const Context& ctx,
...
@@ -496,7 +496,7 @@ void MultiClassNMSKernel(const Context& ctx,
DenseTensor
*
nms_rois_num
)
{
DenseTensor
*
nms_rois_num
)
{
bool
return_index
=
index
!=
nullptr
;
bool
return_index
=
index
!=
nullptr
;
bool
has_roisnum
=
rois_num
.
get_ptr
()
!=
nullptr
;
bool
has_roisnum
=
rois_num
.
get_ptr
()
!=
nullptr
;
auto
score_dims
=
scores
.
dims
(
);
auto
score_dims
=
phi
::
vectorize
<
int
>
(
scores
.
dims
()
);
auto
score_size
=
score_dims
.
size
();
auto
score_size
=
score_dims
.
size
();
std
::
vector
<
std
::
map
<
int
,
std
::
vector
<
int
>>>
all_indices
;
std
::
vector
<
std
::
map
<
int
,
std
::
vector
<
int
>>>
all_indices
;
...
...
paddle/phi/kernels/sparse/cpu/sparse_utils_kernel.cc
浏览文件 @
ae428a0a
...
@@ -258,7 +258,7 @@ void CooToDenseCPUKernel(const CPUContext& dev_ctx,
...
@@ -258,7 +258,7 @@ void CooToDenseCPUKernel(const CPUContext& dev_ctx,
const
auto
dense_dims
=
x
.
dims
();
const
auto
dense_dims
=
x
.
dims
();
const
auto
indices
=
x
.
indices
();
const
auto
indices
=
x
.
indices
();
const
auto
values
=
x
.
values
();
const
auto
values
=
x
.
values
();
const
auto
indices_dims
=
indices
.
dims
(
);
const
auto
indices_dims
=
phi
::
vectorize
<
int
>
(
indices
.
dims
()
);
int64_t
sparse_dim
=
indices_dims
[
0
];
int64_t
sparse_dim
=
indices_dims
[
0
];
if
(
indices_dims
.
size
()
==
1
)
{
if
(
indices_dims
.
size
()
==
1
)
{
sparse_dim
=
1
;
sparse_dim
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录