Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wmsofts
Paddle
提交
7e56147d
P
Paddle
项目概览
wmsofts
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
7e56147d
编写于
3月 09, 2023
作者:
W
Wang Xin
提交者:
GitHub
3月 09, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix maybe-uninitialized compiler warning in Linux (#51336)
上级
8db15a42
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
6 deletion
+8
-6
cmake/flags.cmake
cmake/flags.cmake
+0
-1
paddle/fluid/framework/ir/delete_weight_dequant_linear_op_pass.cc
...luid/framework/ir/delete_weight_dequant_linear_op_pass.cc
+2
-2
paddle/fluid/inference/tensorrt/convert/op_converter.h
paddle/fluid/inference/tensorrt/convert/op_converter.h
+3
-0
paddle/fluid/inference/tensorrt/convert/unary_op.cc
paddle/fluid/inference/tensorrt/convert/unary_op.cc
+1
-1
paddle/fluid/operators/fused/fused_gemm_epilogue_op_xpu.cc
paddle/fluid/operators/fused/fused_gemm_epilogue_op_xpu.cc
+1
-1
paddle/phi/kernels/xpu/pad3d_grad_kernel.cc
paddle/phi/kernels/xpu/pad3d_grad_kernel.cc
+1
-1
未找到文件。
cmake/flags.cmake
浏览文件 @
7e56147d
...
...
@@ -154,7 +154,6 @@ if(NOT WIN32)
-Wno-error=terminate
# Warning in PADDLE_ENFORCE
-Wno-error=int-in-bool-context
# Warning in Eigen gcc 7.2
-Wimplicit-fallthrough=0
# Warning in tinyformat.h
-Wno-error=maybe-uninitialized
# Warning in Paddle-Lite
${
fsanitize
}
)
if
(
WITH_IPU
)
...
...
paddle/fluid/framework/ir/delete_weight_dequant_linear_op_pass.cc
浏览文件 @
7e56147d
...
...
@@ -45,8 +45,8 @@ void DeleteWeightDequantLinearOpPass::ApplyImpl(ir::Graph* graph) const {
if
(
n
->
IsOp
())
{
auto
*
op
=
n
->
Op
();
if
(
op
->
Type
()
==
"dequantize_linear"
)
{
Node
*
weight_var_node
,
*
dequantized_weight_var_node
,
*
scale_var_node
,
*
calcu_op_node
,
*
while_op_node
;
Node
*
weight_var_node
,
*
calcu_op_node
,
*
while_op_node
;
Node
*
dequantized_weight_var_node
=
nullptr
,
*
scale_var_node
=
nullptr
;
// 1. Judge whether for dequant weight and find
// weight_var_node/scale_var_node
for
(
auto
*
input_node
:
n
->
inputs
)
{
...
...
paddle/fluid/inference/tensorrt/convert/op_converter.h
浏览文件 @
7e56147d
...
...
@@ -602,6 +602,9 @@ class OpConverter {
const
std
::
string
&
layer_type
,
const
std
::
vector
<
std
::
string
>&
output_tensor_names
,
bool
test_mode
=
false
)
{
if
(
layer
==
nullptr
)
{
return
;
}
size_t
num_out
=
output_tensor_names
.
size
();
std
::
string
layer_name
=
layer_type
+
" (Output: "
;
for
(
size_t
i
=
0
;
i
<
num_out
;
i
++
)
{
...
...
paddle/fluid/inference/tensorrt/convert/unary_op.cc
浏览文件 @
7e56147d
...
...
@@ -52,7 +52,7 @@ class UnaryOpConverter : public OpConverter {
nvinfer1
::
ITensor
*
input_tensor
=
engine_
->
GetITensor
(
op_desc
.
Input
(
"X"
)[
0
]);
auto
op_pair
=
ops
.
find
(
op_type_
);
nvinfer1
::
ILayer
*
layer
;
nvinfer1
::
ILayer
*
layer
=
nullptr
;
#if !IS_TRT_VERSION_GE(8500)
nvinfer1
::
DataType
org_type
=
input_tensor
->
getType
();
bool
cast
=
org_type
==
nvinfer1
::
DataType
::
kINT8
||
...
...
paddle/fluid/operators/fused/fused_gemm_epilogue_op_xpu.cc
浏览文件 @
7e56147d
...
...
@@ -142,7 +142,7 @@ class FusedGemmEpilogueXPUGradKernel : public framework::OpKernel<T> {
(
reserve_space
==
NULL
)
?
(
reinterpret_cast
<
const
XPUType
*>
(
NULL
))
:
(
reinterpret_cast
<
const
XPUType
*>
(
reserve_space
->
data
<
T
>
()));
XPUType
*
d_act_input_ptr
;
XPUType
*
d_act_input_ptr
=
NULL
;
if
(
activation
!=
"none"
)
{
d_act_input_ptr
=
RAII_GUARD
.
alloc_l3_or_gm
<
XPUType
>
(
dout
->
numel
());
dout_fc_ptr
=
d_act_input_ptr
;
...
...
paddle/phi/kernels/xpu/pad3d_grad_kernel.cc
浏览文件 @
7e56147d
...
...
@@ -34,7 +34,7 @@ void Pad3dGradKernel(const Context& dev_ctx,
auto
*
d_out
=
&
out_grad
;
auto
*
d_in
=
x_grad
;
auto
d_in_dims
=
d_in
->
dims
(
);
auto
d_in_dims
=
vectorize
<
int
>
(
d_in
->
dims
()
);
const
T
*
d_out_data
=
d_out
->
data
<
T
>
();
T
*
d_in_data
=
dev_ctx
.
template
Alloc
<
T
>(
d_in
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录