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 {
}
};
#define DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE(class_type, ...)
\
#define DECLARE_NO_NEED_BUFFER_VARS_INFERE
R(class_type, ...)
\
class class_type final \
: public ::paddle::framework::NoNeedBufferVarsInference { \
public: \
...
...
@@ -96,9 +96,6 @@ 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/operators/pad2d_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -646,8 +646,7 @@ class Pad2dOpGradMaker : public framework::SingleGradOpMaker<T> {
};
// TODO(zjl): Paddings can also be skipped!
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
Pad2dOpGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
Pad2dOpGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/pool_with_index_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -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"
);
}
// namespace operators
...
...
paddle/fluid/operators/reshape_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -542,8 +542,8 @@ DECLARE_INPLACE_OP_INFERER(ReshapeGradInplaceInToOut,
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
DECLARE_INPLACE_OP_INFERER
(
ReshapeDoubleGradInplaceInToOut
,
{
"DDX"
,
"DDOut"
});
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ReshapeDoubleGradOpNoNeedBufferVarInference
,
"DOut"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ReshapeDoubleGradOpNoNeedBufferVarInference
,
"DOut"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/roi_align_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -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 paddle
...
...
paddle/fluid/operators/scatter_nd_add_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -159,7 +159,7 @@ class ScatterNdAddGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ScatterNdAddGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ScatterNdAddGradNoNeedBufferVarsInference
,
"Updates"
);
}
// namespace operators
...
...
paddle/fluid/operators/scatter_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -125,7 +125,7 @@ class ScatterGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
ScatterGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
ScatterGradNoNeedBufferVarsInference
,
"Updates"
);
DECLARE_INPLACE_OP_INFERER
(
ScatterInplaceInferer
,
{
"X"
,
"Out"
});
...
...
paddle/fluid/operators/slice_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -315,7 +315,7 @@ class SliceDoubleOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
SliceOpGradNoNeedBufferVarsInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
SliceOpGradNoNeedBufferVarsInference
,
"Input"
);
}
// namespace operators
...
...
paddle/fluid/operators/space_to_depth_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -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
>
class
SpaceToDepthGradOpMaker
:
public
framework
::
SingleGradOpMaker
<
T
>
{
...
...
paddle/fluid/operators/squared_l2_distance_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -71,8 +71,7 @@ class SquaredL2DistanceOp : public framework::OperatorWithKernel {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
SquaredL2DistanceGradOpNoBuffer
,
"X"
,
"Y"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
SquaredL2DistanceGradOpNoBuffer
,
"X"
,
"Y"
);
template
<
typename
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"});
DECLARE_INPLACE_OP_INFERER
(
SequeezeGradInplaceInferer
,
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
SqueezeGradNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
SqueezeGradNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/strided_slice_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -272,8 +272,8 @@ class StridedSliceOpGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
StridedSliceOpGradNoNeedBufferVarsInference
,
"Input"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
StridedSliceOpGradNoNeedBufferVarsInference
,
"Input"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/unfold_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -163,8 +163,7 @@ class UnfoldGradMaker : public framework::SingleGradOpMaker<T> {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE
(
UnfoldGradOpNoNeedBufferVarsInference
,
"X"
);
DECLARE_NO_NEED_BUFFER_VARS_INFERER
(
UnfoldGradOpNoNeedBufferVarsInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/unsqueeze_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -282,7 +282,7 @@ DECLARE_INPLACE_OP_INFERER(UnsqueezeInplaceInferer, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER
(
UnsqueezeGradInplaceInferer
,
{
framework
::
GradVarName
(
"Out"
),
framework
::
GradVarName
(
"X"
)});
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
UnsqueezeGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
UnsqueezeGradOpNoNeedBufferVarInference
,
"X"
);
}
// namespace operators
}
// namespace paddle
...
...
paddle/fluid/operators/warpctc_op.cc
浏览文件 @
53e6f8e1
...
...
@@ -178,7 +178,7 @@ class WarpCTCGradOp : public framework::OperatorWithKernel {
}
};
DECLARE_NO_NEED_BUFFER_VARS_INFERE
NCE
(
WarpCTCGradOpNoNeedBufferVarInference
,
DECLARE_NO_NEED_BUFFER_VARS_INFERE
R
(
WarpCTCGradOpNoNeedBufferVarInference
,
"Logits"
);
}
// namespace operators
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录