Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
7d8d50b6
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看板
未验证
提交
7d8d50b6
编写于
3月 25, 2020
作者:
Z
Zeng Jinle
提交者:
GitHub
3月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename no_need_buffer_vars macro, test=develop (#23160)
上级
05c00af5
变更
18
显示空白变更内容
内联
并排
Showing
18 changed file
with
26 addition
and
31 deletion
+26
-31
paddle/fluid/operators/elementwise/elementwise_op.h
paddle/fluid/operators/elementwise/elementwise_op.h
+4
-4
paddle/fluid/operators/expand_as_op.cc
paddle/fluid/operators/expand_as_op.cc
+1
-1
paddle/fluid/operators/expand_op.cc
paddle/fluid/operators/expand_op.cc
+1
-1
paddle/fluid/operators/fill_zeros_like_op.cc
paddle/fluid/operators/fill_zeros_like_op.cc
+2
-2
paddle/fluid/operators/flatten_op.cc
paddle/fluid/operators/flatten_op.cc
+1
-2
paddle/fluid/operators/gather_nd_op.cc
paddle/fluid/operators/gather_nd_op.cc
+1
-2
paddle/fluid/operators/gather_op.cc
paddle/fluid/operators/gather_op.cc
+1
-1
paddle/fluid/operators/gru_op.cc
paddle/fluid/operators/gru_op.cc
+2
-2
paddle/fluid/operators/gru_unit_op.cc
paddle/fluid/operators/gru_unit_op.cc
+2
-2
paddle/fluid/operators/hierarchical_sigmoid_op.cc
paddle/fluid/operators/hierarchical_sigmoid_op.cc
+1
-1
paddle/fluid/operators/interpolate_op.cc
paddle/fluid/operators/interpolate_op.cc
+2
-2
paddle/fluid/operators/kldiv_loss_op.cc
paddle/fluid/operators/kldiv_loss_op.cc
+1
-2
paddle/fluid/operators/linear_chain_crf_op.cc
paddle/fluid/operators/linear_chain_crf_op.cc
+2
-2
paddle/fluid/operators/lod_reset_op.cc
paddle/fluid/operators/lod_reset_op.cc
+1
-2
paddle/fluid/operators/lookup_table_op.cc
paddle/fluid/operators/lookup_table_op.cc
+1
-1
paddle/fluid/operators/lookup_table_v2_op.cc
paddle/fluid/operators/lookup_table_v2_op.cc
+1
-1
paddle/fluid/operators/mean_op.cc
paddle/fluid/operators/mean_op.cc
+1
-1
paddle/fluid/operators/nce_op.cc
paddle/fluid/operators/nce_op.cc
+1
-2
未找到文件。
paddle/fluid/operators/elementwise/elementwise_op.h
浏览文件 @
7d8d50b6
...
...
@@ -348,9 +348,9 @@ DECLARE_INPLACE_OP_INFERER(ElementwiseGradOpInplace,
framework
::
GradVarName
(
"X"
)});
DECLARE_INPLACE_OP_INFERER
(
ElementwiseDoubleGradOpInplace
,
{
"DDX"
,
"DDOut"
});
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ElementwiseGradNoBufVarsInference
,
"X"
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ElementwiseGradNoBufVarsInference
,
"X"
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ElementwiseDoubleGradNoBufVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ElementwiseDoubleGradNoBufVarsInference
,
"Y"
,
"DOut"
);
}
// namespace operators
...
...
paddle/fluid/operators/expand_as_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -113,7 +113,7 @@ class ExpandAsGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ExpandAsGradNoNeedBufVarsInferer
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ExpandAsGradNoNeedBufVarsInferer
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/expand_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -214,7 +214,7 @@ class ExpandGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ExpandGradNoNeedBufVarsInferer
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ExpandGradNoNeedBufVarsInferer
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/fill_zeros_like_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -73,7 +73,7 @@ class FillZerosLikeOp2Maker : public FillZerosLikeOpMaker {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
FillZerosLikeOp2NoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
FillZerosLikeOp2NoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
...
...
paddle/fluid/operators/flatten_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -246,8 +246,7 @@ DECLARE_INPLACE_OP_INFERER(FlattenOpInplaceInToOut, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER
(
FlattenGradInplaceinToOut
,
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
FlattenGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
FlattenGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/gather_nd_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -161,8 +161,7 @@ class GatherNdGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
GatherNdGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
GatherNdGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/gather_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -123,7 +123,7 @@ class GatherGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GatherGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GatherGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/gru_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -417,8 +417,8 @@ class GRUGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GRUGradOpNoNeedBufferVarInference
,
"Input"
,
"Bias"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GRUGradOpNoNeedBufferVarInference
,
"Input"
,
"Bias"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/gru_unit_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -234,7 +234,7 @@ class GRUUnitGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GRUUnitGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GRUUnitGradOpNoNeedBufferVarInference
,
"Bias"
);
}
// namespace operators
...
...
paddle/fluid/operators/hierarchical_sigmoid_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -287,7 +287,7 @@ class HierarchicalSigmoidGradOpGradVarTypeInference
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
HierarchicalSigmoidGradOpNoNeedBufferVarInference
,
"Bias"
);
}
// namespace operators
...
...
paddle/fluid/operators/interpolate_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -447,7 +447,7 @@ class InterpolateGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
InterpolateGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
InterpolateGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
...
...
paddle/fluid/operators/kldiv_loss_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -160,8 +160,7 @@ class KLDivLossOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
KLDivLossGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
KLDivLossGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/linear_chain_crf_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -302,8 +302,8 @@ class LinearChainCRFGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
LinearChainCRFGradNoNeedBufferVarsInference
,
"Transition"
,
"Emission"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
LinearChainCRFGradNoNeedBufferVarsInference
,
"Transition"
,
"Emission"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/lod_reset_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -222,8 +222,7 @@ DECLARE_INPLACE_OP_INFERER(LoDResetGradInplaceInferer,
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
LoDResetGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
LoDResetGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/lookup_table_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -131,7 +131,7 @@ or not. And the output only shares the LoD information with input Ids.
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
LookupTableGradOpNoBuffer
,
"W"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
LookupTableGradOpNoBuffer
,
"W"
);
template
<
typename
T
>
class
LookupTableGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/lookup_table_v2_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -118,7 +118,7 @@ or not. And the output only shares the LoD information with input Ids.
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
LookupTableV2GradOpNoBuffer
,
"W"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
LookupTableV2GradOpNoBuffer
,
"W"
);
template
<
typename
T
>
class
LookupTableV2GradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/mean_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -84,7 +84,7 @@ class MeanGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
MeanGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
MeanGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/nce_op.cc
浏览文件 @
7d8d50b6
...
...
@@ -297,8 +297,7 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
NCEGradOpNoNeedBufferVarInference
,
"Bias"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
NCEGradOpNoNeedBufferVarInference
,
"Bias"
);
}
// namespace operators
}
// namespace paddle
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录