Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
91096ae2
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
91096ae2
编写于
10月 31, 2022
作者:
W
Wang Xin
提交者:
GitHub
10月 31, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove boost compiler flags in flags.cmake (#47468)
上级
1e2a371c
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
16 deletion
+10
-16
cmake/flags.cmake
cmake/flags.cmake
+1
-7
paddle/fluid/operators/dgc_op.h
paddle/fluid/operators/dgc_op.h
+1
-1
paddle/fluid/operators/mlu/mlu_baseop.cc
paddle/fluid/operators/mlu/mlu_baseop.cc
+3
-3
paddle/fluid/operators/optimizers/dgc_momentum_op.h
paddle/fluid/operators/optimizers/dgc_momentum_op.h
+1
-1
paddle/fluid/operators/reduce_ops/logsumexp_op_xpu.cc
paddle/fluid/operators/reduce_ops/logsumexp_op_xpu.cc
+1
-1
paddle/phi/kernels/cpu/layer_norm_kernel.cc
paddle/phi/kernels/cpu/layer_norm_kernel.cc
+1
-1
paddle/phi/kernels/impl/logsumexp_grad_kernel_impl.h
paddle/phi/kernels/impl/logsumexp_grad_kernel_impl.h
+1
-1
paddle/phi/kernels/impl/logsumexp_kernel_impl.h
paddle/phi/kernels/impl/logsumexp_kernel_impl.h
+1
-1
未找到文件。
cmake/flags.cmake
浏览文件 @
91096ae2
...
...
@@ -170,13 +170,7 @@ if(NOT WIN32)
if
(
NOT APPLE
)
if
((
${
CMAKE_CXX_COMPILER_VERSION
}
VERSION_GREATER 8.0
)
OR
(
WITH_ROCM
))
set
(
COMMON_FLAGS
${
COMMON_FLAGS
}
-Wno-format-truncation
# Warning in boost gcc 8.2
-Wno-error=parentheses
# Warning in boost gcc 8.2
-Wno-error=catch-value
# Warning in boost gcc 8.2
-Wno-error=nonnull-compare
# Warning in boost gcc 8.2
-Wno-error=address
# Warning in boost gcc 8.2
-Wno-ignored-qualifiers
# Warning in boost gcc 8.2
${
COMMON_FLAGS
}
-Wno-ignored-qualifiers
# Warning in Paddle-Lite
-Wno-ignored-attributes
# Warning in Eigen gcc 8.3
-Wno-parentheses
# Warning in Eigen gcc 8.3
)
...
...
paddle/fluid/operators/dgc_op.h
浏览文件 @
91096ae2
...
...
@@ -68,7 +68,7 @@ class DGCOpKernel : public framework::OpKernel<T> {
// nranks
auto
nranks_tensor
=
ctx
.
Input
<
phi
::
DenseTensor
>
(
"nranks"
);
const
int
nranks
=
static_cast
<
const
int
>
(
*
nranks_tensor
->
data
<
float
>
());
const
int
nranks
=
static_cast
<
int
>
(
*
nranks_tensor
->
data
<
float
>
());
PADDLE_ENFORCE_GT
(
nranks
,
1
,
platform
::
errors
::
PreconditionNotMet
(
...
...
paddle/fluid/operators/mlu/mlu_baseop.cc
浏览文件 @
91096ae2
...
...
@@ -1610,9 +1610,9 @@ MLURNNDesc::~MLURNNDesc() {
const
float
alpha1_float
,
const
float
alpha2_float
,
const
float
beta_float
)
{
const
int
alpha1_int
=
static_cast
<
const
int
>
(
alpha1_float
);
const
int
alpha2_int
=
static_cast
<
const
int
>
(
alpha2_float
);
const
int
beta_int
=
static_cast
<
const
int
>
(
beta_float
);
const
int
alpha1_int
=
static_cast
<
int
>
(
alpha1_float
);
const
int
alpha2_int
=
static_cast
<
int
>
(
alpha2_float
);
const
int
beta_int
=
static_cast
<
int
>
(
beta_float
);
const
void
*
alpha1_ptr
=
static_cast
<
const
void
*>
(
&
alpha1_float
);
const
void
*
alpha2_ptr
=
static_cast
<
const
void
*>
(
&
alpha2_float
);
...
...
paddle/fluid/operators/optimizers/dgc_momentum_op.h
浏览文件 @
91096ae2
...
...
@@ -39,7 +39,7 @@ class DGCMomentumKernel : public framework::OpKernel<T> {
// nranks
auto
nranks_tensor
=
context
.
Input
<
phi
::
DenseTensor
>
(
"nranks"
);
const
int
nranks
=
static_cast
<
const
int
>
(
*
nranks_tensor
->
data
<
float
>
());
const
int
nranks
=
static_cast
<
int
>
(
*
nranks_tensor
->
data
<
float
>
());
PADDLE_ENFORCE_GT
(
nranks
,
1
,
...
...
paddle/fluid/operators/reduce_ops/logsumexp_op_xpu.cc
浏览文件 @
91096ae2
...
...
@@ -33,7 +33,7 @@ class XPULogsumexpKernel : public framework::OpKernel<T> {
const
auto
&
input_dim_size
=
input
->
dims
().
size
();
// The dims has full dim, set the reduce_all is True
reduce_all
|=
(
static_cast
<
const
int
>
(
axis
.
size
())
==
input_dim_size
);
reduce_all
|=
(
static_cast
<
int
>
(
axis
.
size
())
==
input_dim_size
);
const
T
*
input_data
=
input
->
data
<
T
>
();
T
*
output_data
=
output
->
mutable_data
<
T
>
(
context
.
GetPlace
());
...
...
paddle/phi/kernels/cpu/layer_norm_kernel.cc
浏览文件 @
91096ae2
...
...
@@ -135,7 +135,7 @@ void LayerNormKernel(const Context& dev_ctx,
scale
?
scale
->
data
<
T
>
()
:
nullptr
,
bias
?
bias
->
data
<
T
>
()
:
nullptr
,
static_cast
<
int
>
(
left
),
static_cast
<
const
float
>
(
epsilon
),
static_cast
<
float
>
(
epsilon
),
right
);
#endif
}
...
...
paddle/phi/kernels/impl/logsumexp_grad_kernel_impl.h
浏览文件 @
91096ae2
...
...
@@ -61,7 +61,7 @@ void LogsumexpGradKernel(const Context& dev_ctx,
dev_ctx
.
template
Alloc
<
T
>(
in_grad
);
const
auto
input_dim_size
=
in
.
dims
().
size
();
reduce_all
|=
(
static_cast
<
const
int
>
(
axis
.
size
())
==
input_dim_size
);
reduce_all
|=
(
static_cast
<
int
>
(
axis
.
size
())
==
input_dim_size
);
if
(
reduce_all
)
{
auto
x
=
phi
::
EigenVector
<
T
>::
Flatten
(
in
);
...
...
paddle/phi/kernels/impl/logsumexp_kernel_impl.h
浏览文件 @
91096ae2
...
...
@@ -71,7 +71,7 @@ void LogsumexpKernel(const Context& dev_ctx,
const
auto
&
input_dim_size
=
x
.
dims
().
size
();
// The dims has full dim, set the reduce_all is True
reduce_all
|=
(
static_cast
<
const
int
>
(
axis
.
size
())
==
input_dim_size
);
reduce_all
|=
(
static_cast
<
int
>
(
axis
.
size
())
==
input_dim_size
);
if
(
reduce_all
)
{
// Flatten and reduce 1-D tensor
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录