Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f7267412
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看板
未验证
提交
f7267412
编写于
3月 27, 2023
作者:
R
risemeup1
提交者:
GitHub
3月 27, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix_gcc12_error (#52083)
* fix_gcc12_error * fix gcc12 error * fix gcc12 error
上级
b2bd74f7
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
9 deletion
+9
-9
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
+2
-2
paddle/fluid/framework/details/fetch_async_op_handle.cc
paddle/fluid/framework/details/fetch_async_op_handle.cc
+1
-1
paddle/fluid/operators/ctc_align_op.h
paddle/fluid/operators/ctc_align_op.h
+1
-1
paddle/fluid/operators/detection/polygon_box_transform_op.cc
paddle/fluid/operators/detection/polygon_box_transform_op.cc
+1
-1
paddle/fluid/operators/detection/roi_perspective_transform_op.cc
...fluid/operators/detection/roi_perspective_transform_op.cc
+1
-1
paddle/fluid/operators/sequence_ops/sequence_enumerate_op.h
paddle/fluid/operators/sequence_ops/sequence_enumerate_op.h
+1
-1
paddle/fluid/operators/tdm_sampler_op.h
paddle/fluid/operators/tdm_sampler_op.h
+1
-1
paddle/phi/kernels/cpu/roi_align_grad_kernel.cc
paddle/phi/kernels/cpu/roi_align_grad_kernel.cc
+1
-1
未找到文件。
paddle/fluid/distributed/ps/service/brpc_ps_client.cc
浏览文件 @
f7267412
...
...
@@ -1638,7 +1638,7 @@ void BrpcPsClient::PushSparseTaskConsume() {
while
(
!
task_queue
->
Empty
()
&&
merge_count
<
cur_meger_size
)
{
++
merge_count
;
SparseAsyncTask
*
task
;
SparseAsyncTask
*
task
=
nullptr
;
task_queue
->
Get
(
task
);
task_list
.
push_back
(
std
::
shared_ptr
<
SparseAsyncTask
>
(
task
));
}
...
...
@@ -1943,7 +1943,7 @@ void BrpcPsClient::PushDenseTaskConsume() {
continue
;
}
++
_async_call_num
;
DenseAsyncTask
*
task
;
DenseAsyncTask
*
task
=
nullptr
;
task_queue
->
Get
(
task
);
auto
*
accessor
=
GetTableAccessor
(
task
->
table_id
());
// 设置请求回调
...
...
paddle/fluid/framework/details/fetch_async_op_handle.cc
浏览文件 @
f7267412
...
...
@@ -149,7 +149,7 @@ void FetchAsyncOpHandle::FetchMergedLodTensor(
phi
::
DenseTensor
*
dst_lodtensor
)
{
// calc dst type,layout,dim,lod and calc check dim
proto
::
VarType
::
Type
new_type
=
proto
::
VarType
::
FP32
;
phi
::
DataLayout
new_layout
;
phi
::
DataLayout
new_layout
=
phi
::
DataLayout
::
UNDEFINED
;
framework
::
DDim
new_dim
;
LoD
new_lod
=
src_lodtensors
[
0
]
->
lod
();
...
...
paddle/fluid/operators/ctc_align_op.h
浏览文件 @
f7267412
...
...
@@ -33,7 +33,7 @@ class CTCAlignKernel : public framework::OpKernel<T> {
size_t
blank
=
static_cast
<
size_t
>
(
ctx
.
Attr
<
int
>
(
"blank"
));
bool
merge_repeated
=
ctx
.
Attr
<
bool
>
(
"merge_repeated"
);
T
*
output_data
=
output
->
mutable_data
<
T
>
(
ctx
.
GetPlace
());
auto
input_dims
=
input
->
dims
(
);
auto
input_dims
=
phi
::
vectorize
<
int
>
(
input
->
dims
()
);
const
T
*
input_data
=
input
->
data
<
T
>
();
// support tensor input, no lod information
...
...
paddle/fluid/operators/detection/polygon_box_transform_op.cc
浏览文件 @
f7267412
...
...
@@ -26,7 +26,7 @@ class PolygonBoxTransformCPUKernel : public framework::OpKernel<T> {
true
,
platform
::
errors
::
InvalidArgument
(
"It must use CUDAPlace."
));
auto
*
in
=
ctx
.
Input
<
phi
::
DenseTensor
>
(
"Input"
);
auto
in_dims
=
in
->
dims
(
);
auto
in_dims
=
phi
::
vectorize
<
int
>
(
in
->
dims
()
);
const
T
*
in_data
=
in
->
data
<
T
>
();
auto
*
out
=
ctx
.
Output
<
phi
::
DenseTensor
>
(
"Output"
);
T
*
out_data
=
out
->
mutable_data
<
T
>
(
ctx
.
GetPlace
());
...
...
paddle/fluid/operators/detection/roi_perspective_transform_op.cc
浏览文件 @
f7267412
...
...
@@ -403,7 +403,7 @@ class CPUROIPerspectiveTransformGradOpKernel : public framework::OpKernel<T> {
auto
transformed_width
=
ctx
.
Attr
<
int
>
(
"transformed_width"
);
auto
spatial_scale
=
ctx
.
Attr
<
float
>
(
"spatial_scale"
);
auto
in_dims
=
in
->
dims
(
);
auto
in_dims
=
phi
::
vectorize
<
int
>
(
in
->
dims
()
);
int
batch_size
=
in_dims
[
0
];
int
channels
=
in_dims
[
1
];
int
in_height
=
in_dims
[
2
];
...
...
paddle/fluid/operators/sequence_ops/sequence_enumerate_op.h
浏览文件 @
f7267412
...
...
@@ -35,7 +35,7 @@ class SequenceEnumerateKernel : public framework::OpKernel<T> {
"Input(X) phi::DenseTensor of SequenceEnumerateOp does not contain "
"LoD information."
));
auto
in_dims
=
in
->
dims
(
);
auto
in_dims
=
phi
::
vectorize
<
int
>
(
in
->
dims
()
);
auto
lod0
=
in
->
lod
()[
0
];
PADDLE_ENFORCE_EQ
(
static_cast
<
uint64_t
>
(
in_dims
[
0
]),
...
...
paddle/fluid/operators/tdm_sampler_op.h
浏览文件 @
f7267412
...
...
@@ -60,7 +60,7 @@ void TDMSamplerInner(const framework::ExecutionContext &context,
}
VLOG
(
3
)
<<
"TDM: sample res length: "
<<
sample_res_length
;
auto
travel_dim
=
travel_lod_tensor
.
dims
(
);
auto
travel_dim
=
phi
::
vectorize
<
int
>
(
travel_lod_tensor
.
dims
()
);
auto
total_sample_nums
=
input_ids_num
*
sample_res_length
;
// get all data
...
...
paddle/phi/kernels/cpu/roi_align_grad_kernel.cc
浏览文件 @
f7267412
...
...
@@ -81,7 +81,7 @@ void RoiAlignGradKernel(const Context& dev_ctx,
int
sampling_ratio
,
bool
aligned
,
DenseTensor
*
dx
)
{
const
auto
&
in_dims
=
x
.
dims
(
);
const
auto
&
in_dims
=
phi
::
vectorize
<
int
>
(
x
.
dims
()
);
int
channels
=
in_dims
[
1
];
int
height
=
in_dims
[
2
];
int
width
=
in_dims
[
3
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录