Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
53e6f8e1
P
Paddle
项目概览
Crayon鑫
/
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看板
未验证
提交
53e6f8e1
编写于
3月 25, 2020
作者:
Z
Zeng Jinle
提交者:
GitHub
3月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename macro, test=develop (#23161)
上级
bba74071
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
22 addition
and
29 deletion
+22
-29
paddle/fluid/framework/no_need_buffer_vars_inference.h
paddle/fluid/framework/no_need_buffer_vars_inference.h
+1
-4
paddle/fluid/operators/pad2d_op.cc
paddle/fluid/operators/pad2d_op.cc
+1
-2
paddle/fluid/operators/pool_with_index_op.cc
paddle/fluid/operators/pool_with_index_op.cc
+1
-1
paddle/fluid/operators/reshape_op.cc
paddle/fluid/operators/reshape_op.cc
+2
-2
paddle/fluid/operators/roi_align_op.cc
paddle/fluid/operators/roi_align_op.cc
+1
-1
paddle/fluid/operators/scatter_nd_add_op.cc
paddle/fluid/operators/scatter_nd_add_op.cc
+2
-2
paddle/fluid/operators/scatter_op.cc
paddle/fluid/operators/scatter_op.cc
+2
-2
paddle/fluid/operators/slice_op.cc
paddle/fluid/operators/slice_op.cc
+2
-2
paddle/fluid/operators/space_to_depth_op.cc
paddle/fluid/operators/space_to_depth_op.cc
+1
-1
paddle/fluid/operators/squared_l2_distance_op.cc
paddle/fluid/operators/squared_l2_distance_op.cc
+1
-2
paddle/fluid/operators/squeeze_op.cc
paddle/fluid/operators/squeeze_op.cc
+1
-2
paddle/fluid/operators/strided_slice_op.cc
paddle/fluid/operators/strided_slice_op.cc
+2
-2
paddle/fluid/operators/unfold_op.cc
paddle/fluid/operators/unfold_op.cc
+1
-2
paddle/fluid/operators/unsqueeze_op.cc
paddle/fluid/operators/unsqueeze_op.cc
+2
-2
paddle/fluid/operators/warpctc_op.cc
paddle/fluid/operators/warpctc_op.cc
+2
-2
未找到文件。
paddle/fluid/framework/no_need_buffer_vars_inference.h
浏览文件 @
53e6f8e1
...
@@ -81,7 +81,7 @@ class NoNeedBufferVarsInference {
...
@@ -81,7 +81,7 @@ class NoNeedBufferVarsInference {
}
}
};
};
#define DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE(class_type, ...)
\
#define DECLARE_NO_NEED_BUFFER_VARS_INFERE
R(class_type, ...)
\
class class_type final \
class class_type final \
: public ::paddle::framework::NoNeedBufferVarsInference { \
: public ::paddle::framework::NoNeedBufferVarsInference { \
public: \
public: \
...
@@ -96,9 +96,6 @@ class NoNeedBufferVarsInference {
...
@@ -96,9 +96,6 @@ class NoNeedBufferVarsInference {
} \
} \
}
}
#define DECLARE_NO_NEED_BUFFER_VARS_INFERER \
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
class
InferNoNeedBufferVarsFN
{
class
InferNoNeedBufferVarsFN
{
public:
public:
inline
const
std
::
unordered_set
<
std
::
string
>
&
operator
()(
inline
const
std
::
unordered_set
<
std
::
string
>
&
operator
()(
...
...
paddle/fluid/operators/pad2d_op.cc
浏览文件 @
53e6f8e1
...
@@ -646,8 +646,7 @@ class Pad2dOpGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -646,8 +646,7 @@ class Pad2dOpGradMaker : public framework::SingleGradOpMaker<T> {
};
};
// TODO(zjl): Paddings can also be skipped!
// TODO(zjl): Paddings can also be skipped!
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
Pad2dOpGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
Pad2dOpGradNoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/pool_with_index_op.cc
浏览文件 @
53e6f8e1
...
@@ -307,7 +307,7 @@ class MaxPoolWithIndexGradOpMaker : public framework::SingleGradOpMaker<T> {
...
@@ -307,7 +307,7 @@ class MaxPoolWithIndexGradOpMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
MaxPoolWithIndexOpGradNoNeedBufferVarsInference
,
"X"
);
MaxPoolWithIndexOpGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace operators
...
...
paddle/fluid/operators/reshape_op.cc
浏览文件 @
53e6f8e1
...
@@ -542,8 +542,8 @@ DECLARE_INPLACE_OP_INFERER(ReshapeGradInplaceInToOut,
...
@@ -542,8 +542,8 @@ DECLARE_INPLACE_OP_INFERER(ReshapeGradInplaceInToOut,
{
framework
::
GradVarName
(
"Out"
),
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_INPLACE_OP_INFERER
(
ReshapeDoubleGradInplaceInToOut
,
{
"DDX"
,
"DDOut"
});
DECLARE_INPLACE_OP_INFERER
(
ReshapeDoubleGradInplaceInToOut
,
{
"DDX"
,
"DDOut"
});
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ReshapeDoubleGradOpNoNeedBufferVarInference
,
ReshapeDoubleGradOpNoNeedBufferVarInference
,
"DOut"
);
"DOut"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/roi_align_op.cc
浏览文件 @
53e6f8e1
...
@@ -169,7 +169,7 @@ class ROIAlignGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -169,7 +169,7 @@ class ROIAlignGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
RoiAlignGradNoNeedBufVarsInferer
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
RoiAlignGradNoNeedBufVarsInferer
,
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/scatter_nd_add_op.cc
浏览文件 @
53e6f8e1
...
@@ -159,8 +159,8 @@ class ScatterNdAddGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -159,8 +159,8 @@ class ScatterNdAddGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ScatterNdAddGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ScatterNdAddGradNoNeedBufferVarsInference
,
"Updates"
);
"Updates"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/scatter_op.cc
浏览文件 @
53e6f8e1
...
@@ -125,8 +125,8 @@ class ScatterGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -125,8 +125,8 @@ class ScatterGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ScatterGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ScatterGradNoNeedBufferVarsInference
,
"Updates"
);
"Updates"
);
DECLARE_INPLACE_OP_INFERER
(
ScatterInplaceInferer
,
{
"X"
,
"Out"
});
DECLARE_INPLACE_OP_INFERER
(
ScatterInplaceInferer
,
{
"X"
,
"Out"
});
DECLARE_INPLACE_OP_INFERER
(
ScatterGradInplaceInferer
,
DECLARE_INPLACE_OP_INFERER
(
ScatterGradInplaceInferer
,
...
...
paddle/fluid/operators/slice_op.cc
浏览文件 @
53e6f8e1
...
@@ -315,8 +315,8 @@ class SliceDoubleOpGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -315,8 +315,8 @@ class SliceDoubleOpGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SliceOpGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SliceOpGradNoNeedBufferVarsInference
,
"Input"
);
"Input"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/space_to_depth_op.cc
浏览文件 @
53e6f8e1
...
@@ -131,7 +131,7 @@ class SpaceToDepthOpMaker : public framework::OpProtoAndCheckerMaker {
...
@@ -131,7 +131,7 @@ class SpaceToDepthOpMaker : public framework::OpProtoAndCheckerMaker {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SpaceToDepthGradOpNoBuffer
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SpaceToDepthGradOpNoBuffer
,
"X"
);
template
<
typename
T
>
template
<
typename
T
>
class
SpaceToDepthGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
class
SpaceToDepthGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/squared_l2_distance_op.cc
浏览文件 @
53e6f8e1
...
@@ -71,8 +71,7 @@ class SquaredL2DistanceOp : public framework::OperatorWithKernel {
...
@@ -71,8 +71,7 @@ class SquaredL2DistanceOp : public framework::OperatorWithKernel {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
SquaredL2DistanceGradOpNoBuffer
,
"X"
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
SquaredL2DistanceGradOpNoBuffer
,
"X"
,
"Y"
);
"Y"
);
template
<
typename
T
>
template
<
typename
T
>
class
SquaredL2DistanceGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
class
SquaredL2DistanceGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/squeeze_op.cc
浏览文件 @
53e6f8e1
...
@@ -286,8 +286,7 @@ DECLARE_INPLACE_OP_INFERER(SequeezeInplaceInferer, {"X", "Out"});
...
@@ -286,8 +286,7 @@ DECLARE_INPLACE_OP_INFERER(SequeezeInplaceInferer, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER
(
SequeezeGradInplaceInferer
,
DECLARE_INPLACE_OP_INFERER
(
SequeezeGradInplaceInferer
,
{
framework
::
GradVarName
(
"Out"
),
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
SqueezeGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
SqueezeGradNoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/strided_slice_op.cc
浏览文件 @
53e6f8e1
...
@@ -272,8 +272,8 @@ class StridedSliceOpGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -272,8 +272,8 @@ class StridedSliceOpGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
StridedSliceOpGradNoNeedBufferVarsInference
,
StridedSliceOpGradNoNeedBufferVarsInference
,
"Input"
);
"Input"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/unfold_op.cc
浏览文件 @
53e6f8e1
...
@@ -163,8 +163,7 @@ class UnfoldGradMaker : public framework::SingleGradOpMaker<T> {
...
@@ -163,8 +163,7 @@ class UnfoldGradMaker : public framework::SingleGradOpMaker<T> {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
UnfoldGradOpNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
UnfoldGradOpNoNeedBufferVarsInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/unsqueeze_op.cc
浏览文件 @
53e6f8e1
...
@@ -282,8 +282,8 @@ DECLARE_INPLACE_OP_INFERER(UnsqueezeInplaceInferer, {"X", "Out"});
...
@@ -282,8 +282,8 @@ DECLARE_INPLACE_OP_INFERER(UnsqueezeInplaceInferer, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER
(
UnsqueezeGradInplaceInferer
,
DECLARE_INPLACE_OP_INFERER
(
UnsqueezeGradInplaceInferer
,
{
framework
::
GradVarName
(
"Out"
),
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
UnsqueezeGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
UnsqueezeGradOpNoNeedBufferVarInference
,
"X"
);
"X"
);
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
...
...
paddle/fluid/operators/warpctc_op.cc
浏览文件 @
53e6f8e1
...
@@ -178,8 +178,8 @@ class WarpCTCGradOp : public framework::OperatorWithKernel {
...
@@ -178,8 +178,8 @@ class WarpCTCGradOp : public framework::OperatorWithKernel {
}
}
};
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
WarpCTCGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
WarpCTCGradOpNoNeedBufferVarInference
,
"Logits"
);
"Logits"
);
}
// 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录