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,10 +348,10 @@ DECLARE_INPLACE_OP_INFERER(ElementwiseGradOpInplace,
...
@@ -348,10 +348,10 @@ DECLARE_INPLACE_OP_INFERER(ElementwiseGradOpInplace,
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_INPLACE_OP_INFERER
(
ElementwiseDoubleGradOpInplace
,
{
"DDX"
,
"DDOut"
});
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"
);
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ElementwiseDoubleGradNoBufVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ElementwiseDoubleGradNoBufVarsInference
,
"Y"
,
"DOut"
);
"Y"
,
"DOut"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/expand_as_op.cc
浏览文件 @
7d8d50b6
...
@@ -113,7 +113,7 @@ class ExpandAsGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -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 operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/expand_op.cc
浏览文件 @
7d8d50b6
...
@@ -214,7 +214,7 @@ class ExpandGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -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 operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/fill_zeros_like_op.cc
浏览文件 @
7d8d50b6
...
@@ -73,8 +73,8 @@ class FillZerosLikeOp2Maker : public FillZerosLikeOpMaker {
...
@@ -73,8 +73,8 @@ class FillZerosLikeOp2Maker : public FillZerosLikeOpMaker {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
FillZerosLikeOp2NoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
FillZerosLikeOp2NoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/flatten_op.cc
浏览文件 @
7d8d50b6
...
@@ -246,8 +246,7 @@ DECLARE_INPLACE_OP_INFERER(FlattenOpInplaceInToOut, {"X", "Out"});
...
@@ -246,8 +246,7 @@ DECLARE_INPLACE_OP_INFERER(FlattenOpInplaceInToOut, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER
(
FlattenGradInplaceinToOut
,
DECLARE_INPLACE_OP_INFERER
(
FlattenGradInplaceinToOut
,
{
framework
::
GradVarName
(
"Out"
),
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
FlattenGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
FlattenGradNoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/gather_nd_op.cc
浏览文件 @
7d8d50b6
...
@@ -161,8 +161,7 @@ class GatherNdGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -161,8 +161,7 @@ class GatherNdGradOpMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
GatherNdGradNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
GatherNdGradNoNeedBufferVarInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/gather_op.cc
浏览文件 @
7d8d50b6
...
@@ -123,7 +123,7 @@ class GatherGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -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 operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/gru_op.cc
浏览文件 @
7d8d50b6
...
@@ -417,8 +417,8 @@ class GRUGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -417,8 +417,8 @@ class GRUGradOpMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GRUGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GRUGradOpNoNeedBufferVarInference
,
"Input"
,
"Input"
,
"Bias"
);
"Bias"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/gru_unit_op.cc
浏览文件 @
7d8d50b6
...
@@ -234,8 +234,8 @@ class GRUUnitGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -234,8 +234,8 @@ class GRUUnitGradOpMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GRUUnitGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GRUUnitGradOpNoNeedBufferVarInference
,
"Bias"
);
"Bias"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/hierarchical_sigmoid_op.cc
浏览文件 @
7d8d50b6
...
@@ -287,7 +287,7 @@ class HierarchicalSigmoidGradOpGradVarTypeInference
...
@@ -287,7 +287,7 @@ class HierarchicalSigmoidGradOpGradVarTypeInference
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
HierarchicalSigmoidGradOpNoNeedBufferVarInference
,
"Bias"
);
HierarchicalSigmoidGradOpNoNeedBufferVarInference
,
"Bias"
);
}
// namespace operators
}
// namespace operators
...
...
paddle/fluid/operators/interpolate_op.cc
浏览文件 @
7d8d50b6
...
@@ -447,8 +447,8 @@ class InterpolateGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -447,8 +447,8 @@ class InterpolateGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
InterpolateGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
InterpolateGradNoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/kldiv_loss_op.cc
浏览文件 @
7d8d50b6
...
@@ -160,8 +160,7 @@ class KLDivLossOpGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -160,8 +160,7 @@ class KLDivLossOpGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
KLDivLossGradNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
KLDivLossGradNoNeedBufferVarInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/linear_chain_crf_op.cc
浏览文件 @
7d8d50b6
...
@@ -302,8 +302,8 @@ class LinearChainCRFGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -302,8 +302,8 @@ class LinearChainCRFGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
LinearChainCRFGradNoNeedBufferVarsInference
,
LinearChainCRFGradNoNeedBufferVarsInference
,
"Transition"
,
"Emission"
);
"Transition"
,
"Emission"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/lod_reset_op.cc
浏览文件 @
7d8d50b6
...
@@ -222,8 +222,7 @@ DECLARE_INPLACE_OP_INFERER(LoDResetGradInplaceInferer,
...
@@ -222,8 +222,7 @@ DECLARE_INPLACE_OP_INFERER(LoDResetGradInplaceInferer,
{
framework
::
GradVarName
(
"Out"
),
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
LoDResetGradNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
LoDResetGradNoNeedBufferVarInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// 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.
...
@@ -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
>
template
<
typename
T
>
class
LookupTableGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
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.
...
@@ -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
>
template
<
typename
T
>
class
LookupTableV2GradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
class
LookupTableV2GradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/mean_op.cc
浏览文件 @
7d8d50b6
...
@@ -84,7 +84,7 @@ class MeanGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -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 operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/nce_op.cc
浏览文件 @
7d8d50b6
...
@@ -297,8 +297,7 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference {
...
@@ -297,8 +297,7 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
NCEGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
NCEGradOpNoNeedBufferVarInference
,
"Bias"
);
"Bias"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录