Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
b8886bf1
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b8886bf1
编写于
3月 25, 2020
作者:
Z
Zeng Jinle
提交者:
GitHub
3月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename no_need_buffer_vars_macro, test=develop (#23159)
上级
bae5930b
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
32 addition
and
31 deletion
+32
-31
paddle/fluid/framework/no_need_buffer_vars_inference.h
paddle/fluid/framework/no_need_buffer_vars_inference.h
+3
-0
paddle/fluid/framework/no_need_buffer_vars_inference_test.cc
paddle/fluid/framework/no_need_buffer_vars_inference_test.cc
+1
-1
paddle/fluid/operators/argsort_op.cc
paddle/fluid/operators/argsort_op.cc
+1
-1
paddle/fluid/operators/batch_size_like.h
paddle/fluid/operators/batch_size_like.h
+2
-2
paddle/fluid/operators/center_loss_op.cc
paddle/fluid/operators/center_loss_op.cc
+1
-1
paddle/fluid/operators/concat_op.cc
paddle/fluid/operators/concat_op.cc
+1
-2
paddle/fluid/operators/crop_op.cc
paddle/fluid/operators/crop_op.cc
+1
-1
paddle/fluid/operators/cvm_op.cc
paddle/fluid/operators/cvm_op.cc
+2
-2
paddle/fluid/operators/reduce_ops/reduce_mean_op.cc
paddle/fluid/operators/reduce_ops/reduce_mean_op.cc
+2
-2
paddle/fluid/operators/reduce_ops/reduce_sum_op.cc
paddle/fluid/operators/reduce_ops/reduce_sum_op.cc
+1
-2
paddle/fluid/operators/sequence_ops/sequence_concat_op.cc
paddle/fluid/operators/sequence_ops/sequence_concat_op.cc
+2
-2
paddle/fluid/operators/sequence_ops/sequence_expand_as_op.cc
paddle/fluid/operators/sequence_ops/sequence_expand_as_op.cc
+3
-3
paddle/fluid/operators/sequence_ops/sequence_expand_op.cc
paddle/fluid/operators/sequence_ops/sequence_expand_op.cc
+3
-3
paddle/fluid/operators/sequence_ops/sequence_pad_op.cc
paddle/fluid/operators/sequence_ops/sequence_pad_op.cc
+2
-2
paddle/fluid/operators/sequence_ops/sequence_pool_op.cc
paddle/fluid/operators/sequence_ops/sequence_pool_op.cc
+2
-2
paddle/fluid/operators/sequence_ops/sequence_scatter_op.cc
paddle/fluid/operators/sequence_ops/sequence_scatter_op.cc
+1
-1
paddle/fluid/operators/sequence_ops/sequence_slice_op.cc
paddle/fluid/operators/sequence_ops/sequence_slice_op.cc
+2
-2
paddle/fluid/operators/sequence_ops/sequence_softmax_op.cc
paddle/fluid/operators/sequence_ops/sequence_softmax_op.cc
+1
-1
paddle/fluid/operators/sequence_ops/sequence_unpad_op.cc
paddle/fluid/operators/sequence_ops/sequence_unpad_op.cc
+1
-1
未找到文件。
paddle/fluid/framework/no_need_buffer_vars_inference.h
浏览文件 @
b8886bf1
...
...
@@ -96,6 +96,9 @@ class NoNeedBufferVarsInference {
} \
}
#define DECLARE_NO_NEED_BUFFER_VARS_INFERER \
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
class
InferNoNeedBufferVarsFN
{
public:
inline
const
std
::
unordered_set
<
std
::
string
>
&
operator
()(
...
...
paddle/fluid/framework/no_need_buffer_vars_inference_test.cc
浏览文件 @
b8886bf1
...
...
@@ -48,7 +48,7 @@ TEST(test_no_need_buffer_vars_inference, test_dygraph) {
ASSERT_TRUE
(
boost
::
get
<
bool
>
(
ctx
.
GetAttr
(
"is_test"
)));
}
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
TestNoNeedBufferVarsInferer
,
"X1"
,
"X2"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
TestNoNeedBufferVarsInferer
,
"X1"
,
"X2"
);
TEST
(
test_no_need_buffer_vars_inference
,
test_nullptr_comparation
)
{
InferNoNeedBufferVarsFN
infer_fn
;
...
...
paddle/fluid/operators/argsort_op.cc
浏览文件 @
b8886bf1
...
...
@@ -118,7 +118,7 @@ class ArgsortGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ArgsortGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ArgsortGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/batch_size_like.h
浏览文件 @
b8886bf1
...
...
@@ -74,8 +74,8 @@ class BatchSizeLikeOpMaker : public framework::OpProtoAndCheckerMaker {
virtual
void
Apply
()
=
0
;
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
BatchSizeLikeNoNeedBufferVarsInference
,
"Input"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
BatchSizeLikeNoNeedBufferVarsInference
,
"Input"
);
}
// namespace operators
}
// namespace paddle
paddle/fluid/operators/center_loss_op.cc
浏览文件 @
b8886bf1
...
...
@@ -140,7 +140,7 @@ class CenterLossOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
CenterLossGradNoNeedBufVarsInferer
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
CenterLossGradNoNeedBufVarsInferer
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/concat_op.cc
浏览文件 @
b8886bf1
...
...
@@ -176,8 +176,7 @@ class ConcatOpGrad : public framework::OperatorWithKernel {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
ConcatOpGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
ConcatOpGradNoNeedBufferVarInference
,
"X"
);
template
<
typename
T
>
class
ConcatGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/crop_op.cc
浏览文件 @
b8886bf1
...
...
@@ -199,7 +199,7 @@ class CropGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
GropNoNeedBufferVarInference
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
GropNoNeedBufferVarInference
,
"Y"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/cvm_op.cc
浏览文件 @
b8886bf1
...
...
@@ -141,8 +141,8 @@ class CVMGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
CVMNoNeedBufferVarInference
,
"CVM"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
CVMGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
CVMNoNeedBufferVarInference
,
"CVM"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
CVMGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/reduce_ops/reduce_mean_op.cc
浏览文件 @
b8886bf1
...
...
@@ -82,8 +82,8 @@ class ReduceMeanDoubleGradOpBaseMaker : public imperative::GradOpBaseMakerBase {
}
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ReduceMeanGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ReduceMeanGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/reduce_ops/reduce_sum_op.cc
浏览文件 @
b8886bf1
...
...
@@ -37,8 +37,7 @@ class ReduceSumOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
ReduceSumGradNoNeedBufferVarInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
ReduceSumGradNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/sequence_ops/sequence_concat_op.cc
浏览文件 @
b8886bf1
...
...
@@ -110,8 +110,8 @@ class SeqConcatGradOp : public framework::OperatorWithKernel {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SeqConcatGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SeqConcatGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/sequence_ops/sequence_expand_as_op.cc
浏览文件 @
b8886bf1
...
...
@@ -175,9 +175,9 @@ class SequenceExpandAsOpGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SequenceExpandAsOpNoNeedBufferVarsInference
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceExpandAsOpNoNeedBufferVarsInference
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceExpandAsGradOpNoNeedBufferVarsInference
,
"X"
,
"Y"
);
}
// namespace operators
...
...
paddle/fluid/operators/sequence_ops/sequence_expand_op.cc
浏览文件 @
b8886bf1
...
...
@@ -230,9 +230,9 @@ class SequenceExpandOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SequenceExpandOpNoNeedBufferVarsInference
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceExpandOpNoNeedBufferVarsInference
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceExpandGradOpNoNeedBufferVarsInference
,
"X"
,
"Y"
);
}
// namespace operators
...
...
paddle/fluid/operators/sequence_ops/sequence_pad_op.cc
浏览文件 @
b8886bf1
...
...
@@ -220,8 +220,8 @@ class SequencePadGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SequencePadGradOpNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequencePadGradOpNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/sequence_ops/sequence_pool_op.cc
浏览文件 @
b8886bf1
...
...
@@ -157,8 +157,8 @@ class SequencePoolGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SequencePoolGradOpNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequencePoolGradOpNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/sequence_ops/sequence_scatter_op.cc
浏览文件 @
b8886bf1
...
...
@@ -157,7 +157,7 @@ class SequenceScatterGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceScatterGradNoNeedBufferVarsInference
,
"Updates"
);
}
// namespace operators
...
...
paddle/fluid/operators/sequence_ops/sequence_slice_op.cc
浏览文件 @
b8886bf1
...
...
@@ -133,8 +133,8 @@ class SequenceSliceGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SequenceSliceGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceSliceGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/sequence_ops/sequence_softmax_op.cc
浏览文件 @
b8886bf1
...
...
@@ -151,7 +151,7 @@ class SequenceSoftmaxGradOp : public framework::OperatorWithKernel {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceSoftmaxGradOpNoNeedBufferVarsInferer
,
"X"
);
}
// namespace operators
...
...
paddle/fluid/operators/sequence_ops/sequence_unpad_op.cc
浏览文件 @
b8886bf1
...
...
@@ -151,7 +151,7 @@ class SequenceUnpadGradOpMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SequenceUnpadGradOpNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录