Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
3831a469
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3831a469
编写于
2月 22, 2019
作者:
T
Tao Luo
提交者:
GitHub
2月 22, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15862 from sfraczek/add-override-to-apply_impl
add override to ApplyImpl and precommit fixes
上级
075b5502
0b926114
变更
21
显示空白变更内容
内联
并排
Showing
21 changed file
with
58 addition
and
25 deletion
+58
-25
paddle/fluid/framework/ir/attention_lstm_fuse_pass.h
paddle/fluid/framework/ir/attention_lstm_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.h
paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.h
+4
-2
paddle/fluid/framework/ir/conv_bn_fuse_pass.h
paddle/fluid/framework/ir/conv_bn_fuse_pass.h
+4
-2
paddle/fluid/framework/ir/conv_elementwise_add2_act_fuse_pass.h
.../fluid/framework/ir/conv_elementwise_add2_act_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/conv_elementwise_add_act_fuse_pass.h
...e/fluid/framework/ir/conv_elementwise_add_act_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/conv_elementwise_add_fuse_pass.h
paddle/fluid/framework/ir/conv_elementwise_add_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/embedding_fc_lstm_fuse_pass.h
paddle/fluid/framework/ir/embedding_fc_lstm_fuse_pass.h
+4
-1
paddle/fluid/framework/ir/fc_fuse_pass.h
paddle/fluid/framework/ir/fc_fuse_pass.h
+4
-1
paddle/fluid/framework/ir/fc_gru_fuse_pass.h
paddle/fluid/framework/ir/fc_gru_fuse_pass.h
+4
-2
paddle/fluid/framework/ir/fc_lstm_fuse_pass.h
paddle/fluid/framework/ir/fc_lstm_fuse_pass.h
+6
-2
paddle/fluid/framework/ir/fuse_elewise_add_act_pass.h
paddle/fluid/framework/ir/fuse_elewise_add_act_pass.h
+2
-1
paddle/fluid/framework/ir/fuse_relu_depthwise_conv_pass.h
paddle/fluid/framework/ir/fuse_relu_depthwise_conv_pass.h
+2
-1
paddle/fluid/framework/ir/identity_scale_op_clean_pass.h
paddle/fluid/framework/ir/identity_scale_op_clean_pass.h
+2
-1
paddle/fluid/framework/ir/lock_free_optimize_pass.h
paddle/fluid/framework/ir/lock_free_optimize_pass.h
+2
-1
paddle/fluid/framework/ir/mkldnn/conv_bias_mkldnn_fuse_pass.h
...le/fluid/framework/ir/mkldnn/conv_bias_mkldnn_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/repeated_fc_relu_fuse_pass.h
paddle/fluid/framework/ir/repeated_fc_relu_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/seq_concat_fc_fuse_pass.h
paddle/fluid/framework/ir/seq_concat_fc_fuse_pass.h
+4
-1
paddle/fluid/framework/ir/seqconv_eltadd_relu_fuse_pass.h
paddle/fluid/framework/ir/seqconv_eltadd_relu_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/seqpool_concat_fuse_pass.h
paddle/fluid/framework/ir/seqpool_concat_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/squared_mat_sub_fuse_pass.h
paddle/fluid/framework/ir/squared_mat_sub_fuse_pass.h
+2
-1
paddle/fluid/framework/ir/transpose_flatten_concat_fuse_pass.h
...e/fluid/framework/ir/transpose_flatten_concat_fuse_pass.h
+2
-1
未找到文件。
paddle/fluid/framework/ir/attention_lstm_fuse_pass.h
浏览文件 @
3831a469
...
@@ -22,7 +22,8 @@ namespace ir {
...
@@ -22,7 +22,8 @@ namespace ir {
class
AttentionLSTMFusePass
:
public
FusePassBase
{
class
AttentionLSTMFusePass
:
public
FusePassBase
{
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.h
浏览文件 @
3831a469
...
@@ -31,7 +31,8 @@ class ConvAffineChannelFusePass : public FusePassBase {
...
@@ -31,7 +31,8 @@ class ConvAffineChannelFusePass : public FusePassBase {
virtual
~
ConvAffineChannelFusePass
()
{}
virtual
~
ConvAffineChannelFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"conv_affine_channel_fuse"
};
const
std
::
string
name_scope_
{
"conv_affine_channel_fuse"
};
};
};
...
@@ -40,7 +41,8 @@ class ConvEltwiseAddAffineChannelFusePass : public FusePassBase {
...
@@ -40,7 +41,8 @@ class ConvEltwiseAddAffineChannelFusePass : public FusePassBase {
virtual
~
ConvEltwiseAddAffineChannelFusePass
()
{}
virtual
~
ConvEltwiseAddAffineChannelFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"conv_eltwiseadd_affine_channel_fuse"
};
const
std
::
string
name_scope_
{
"conv_eltwiseadd_affine_channel_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/conv_bn_fuse_pass.h
浏览文件 @
3831a469
...
@@ -31,7 +31,8 @@ class ConvBNFusePass : public FusePassBase {
...
@@ -31,7 +31,8 @@ class ConvBNFusePass : public FusePassBase {
virtual
~
ConvBNFusePass
()
{}
virtual
~
ConvBNFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"conv_bn_fuse"
};
const
std
::
string
name_scope_
{
"conv_bn_fuse"
};
};
};
...
@@ -40,7 +41,8 @@ class ConvEltwiseAddBNFusePass : public FusePassBase {
...
@@ -40,7 +41,8 @@ class ConvEltwiseAddBNFusePass : public FusePassBase {
virtual
~
ConvEltwiseAddBNFusePass
()
{}
virtual
~
ConvEltwiseAddBNFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"conv_eltwiseadd_bn_fuse"
};
const
std
::
string
name_scope_
{
"conv_eltwiseadd_bn_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/conv_elementwise_add2_act_fuse_pass.h
浏览文件 @
3831a469
...
@@ -25,7 +25,8 @@ class ConvElementwiseAdd2ActFusePass : public FusePassBase {
...
@@ -25,7 +25,8 @@ class ConvElementwiseAdd2ActFusePass : public FusePassBase {
virtual
~
ConvElementwiseAdd2ActFusePass
()
{}
virtual
~
ConvElementwiseAdd2ActFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/conv_elementwise_add_act_fuse_pass.h
浏览文件 @
3831a469
...
@@ -25,7 +25,8 @@ class ConvElementwiseAddActFusePass : public FusePassBase {
...
@@ -25,7 +25,8 @@ class ConvElementwiseAddActFusePass : public FusePassBase {
virtual
~
ConvElementwiseAddActFusePass
()
{}
virtual
~
ConvElementwiseAddActFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/conv_elementwise_add_fuse_pass.h
浏览文件 @
3831a469
...
@@ -25,7 +25,8 @@ class ConvElementwiseAddFusePass : public FusePassBase {
...
@@ -25,7 +25,8 @@ class ConvElementwiseAddFusePass : public FusePassBase {
virtual
~
ConvElementwiseAddFusePass
()
{}
virtual
~
ConvElementwiseAddFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/embedding_fc_lstm_fuse_pass.h
浏览文件 @
3831a469
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
#pragma once
#pragma once
#include <string>
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
...
@@ -30,7 +32,8 @@ class EmbeddingFCLSTMFusePass : public FusePassBase {
...
@@ -30,7 +32,8 @@ class EmbeddingFCLSTMFusePass : public FusePassBase {
virtual
~
EmbeddingFCLSTMFusePass
()
{}
virtual
~
EmbeddingFCLSTMFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"embedding_fc_lstm_fuse"
};
const
std
::
string
name_scope_
{
"embedding_fc_lstm_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/fc_fuse_pass.h
浏览文件 @
3831a469
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#pragma once
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
...
@@ -29,7 +31,8 @@ class FCFusePass : public FusePassBase {
...
@@ -29,7 +31,8 @@ class FCFusePass : public FusePassBase {
virtual
~
FCFusePass
()
{}
virtual
~
FCFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/fc_gru_fuse_pass.h
浏览文件 @
3831a469
...
@@ -30,7 +30,8 @@ class FCGRUFusePass : public FusePassBase {
...
@@ -30,7 +30,8 @@ class FCGRUFusePass : public FusePassBase {
virtual
~
FCGRUFusePass
()
{}
virtual
~
FCGRUFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"fc_gru_fuse"
};
const
std
::
string
name_scope_
{
"fc_gru_fuse"
};
};
};
...
@@ -41,7 +42,8 @@ class MulGRUFusePass : public FusePassBase {
...
@@ -41,7 +42,8 @@ class MulGRUFusePass : public FusePassBase {
virtual
~
MulGRUFusePass
()
{}
virtual
~
MulGRUFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"fc_nobias_gru_fuse"
};
const
std
::
string
name_scope_
{
"fc_nobias_gru_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/fc_lstm_fuse_pass.h
浏览文件 @
3831a469
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
#pragma once
#pragma once
#include <string>
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
#include "paddle/fluid/framework/ir/graph_pattern_detector.h"
...
@@ -30,7 +32,8 @@ class FCLstmFusePass : public FusePassBase {
...
@@ -30,7 +32,8 @@ class FCLstmFusePass : public FusePassBase {
virtual
~
FCLstmFusePass
()
{}
virtual
~
FCLstmFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"fc_lstm_fuse"
};
const
std
::
string
name_scope_
{
"fc_lstm_fuse"
};
};
};
...
@@ -40,7 +43,8 @@ class MulLstmFusePass : public FusePassBase {
...
@@ -40,7 +43,8 @@ class MulLstmFusePass : public FusePassBase {
virtual
~
MulLstmFusePass
()
{}
virtual
~
MulLstmFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"fc_nobias_lstm_fuse"
};
const
std
::
string
name_scope_
{
"fc_nobias_lstm_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/fuse_elewise_add_act_pass.h
浏览文件 @
3831a469
...
@@ -32,7 +32,8 @@ class FuseElewiseAddActPass : public FusePassBase {
...
@@ -32,7 +32,8 @@ class FuseElewiseAddActPass : public FusePassBase {
virtual
~
FuseElewiseAddActPass
()
{}
virtual
~
FuseElewiseAddActPass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
std
::
unique_ptr
<
ir
::
Graph
>
FuseElewiseAddAct
(
std
::
unique_ptr
<
ir
::
Graph
>
FuseElewiseAddAct
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
,
std
::
unique_ptr
<
ir
::
Graph
>
graph
,
...
...
paddle/fluid/framework/ir/fuse_relu_depthwise_conv_pass.h
浏览文件 @
3831a469
...
@@ -32,7 +32,8 @@ class FuseReluDepthwiseConvPass : public FusePassBase {
...
@@ -32,7 +32,8 @@ class FuseReluDepthwiseConvPass : public FusePassBase {
virtual
~
FuseReluDepthwiseConvPass
()
{}
virtual
~
FuseReluDepthwiseConvPass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
std
::
unique_ptr
<
ir
::
Graph
>
FuseReluDepthwiseConv
(
std
::
unique_ptr
<
ir
::
Graph
>
FuseReluDepthwiseConv
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
,
bool
only_forward
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
graph
,
bool
only_forward
)
const
;
};
};
...
...
paddle/fluid/framework/ir/identity_scale_op_clean_pass.h
浏览文件 @
3831a469
...
@@ -22,7 +22,8 @@ namespace ir {
...
@@ -22,7 +22,8 @@ namespace ir {
class
IdentityScaleOpCleanPass
:
public
FusePassBase
{
class
IdentityScaleOpCleanPass
:
public
FusePassBase
{
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
private:
private:
virtual
~
IdentityScaleOpCleanPass
()
=
default
;
virtual
~
IdentityScaleOpCleanPass
()
=
default
;
...
...
paddle/fluid/framework/ir/lock_free_optimize_pass.h
浏览文件 @
3831a469
...
@@ -60,7 +60,8 @@ class LockFreeOptimizePass : public Pass {
...
@@ -60,7 +60,8 @@ class LockFreeOptimizePass : public Pass {
virtual
~
LockFreeOptimizePass
()
{}
virtual
~
LockFreeOptimizePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
private:
private:
// Create a new sgd node via current optimizer node
// Create a new sgd node via current optimizer node
...
...
paddle/fluid/framework/ir/mkldnn/conv_bias_mkldnn_fuse_pass.h
浏览文件 @
3831a469
...
@@ -29,7 +29,8 @@ class ConvBiasFusePass : public FusePassBase {
...
@@ -29,7 +29,8 @@ class ConvBiasFusePass : public FusePassBase {
virtual
bool
is_conv3d
()
const
{
return
false
;
}
virtual
bool
is_conv3d
()
const
{
return
false
;
}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"conv_bias_mkldnn_fuse"
};
const
std
::
string
name_scope_
{
"conv_bias_mkldnn_fuse"
};
};
};
/*
/*
...
...
paddle/fluid/framework/ir/repeated_fc_relu_fuse_pass.h
浏览文件 @
3831a469
...
@@ -31,7 +31,8 @@ class RepeatedFCReluFusePass : public FusePassBase {
...
@@ -31,7 +31,8 @@ class RepeatedFCReluFusePass : public FusePassBase {
virtual
~
RepeatedFCReluFusePass
()
{}
virtual
~
RepeatedFCReluFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"repeated_fc_relu_fuse"
};
const
std
::
string
name_scope_
{
"repeated_fc_relu_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/seq_concat_fc_fuse_pass.h
浏览文件 @
3831a469
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#pragma once
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/fuse_pass_base.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/graph.h"
#include "paddle/fluid/framework/ir/pass.h"
#include "paddle/fluid/framework/ir/pass.h"
...
@@ -25,7 +27,8 @@ class SeqConcatFcFusePass : public FusePassBase {
...
@@ -25,7 +27,8 @@ class SeqConcatFcFusePass : public FusePassBase {
virtual
~
SeqConcatFcFusePass
()
{}
virtual
~
SeqConcatFcFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
paddle/fluid/framework/ir/seqconv_eltadd_relu_fuse_pass.h
浏览文件 @
3831a469
...
@@ -28,7 +28,8 @@ class SeqConvEltAddReluFusePass : public FusePassBase {
...
@@ -28,7 +28,8 @@ class SeqConvEltAddReluFusePass : public FusePassBase {
virtual
~
SeqConvEltAddReluFusePass
()
{}
virtual
~
SeqConvEltAddReluFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"seqconv_eltadd_relu_fuse"
};
const
std
::
string
name_scope_
{
"seqconv_eltadd_relu_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/seqpool_concat_fuse_pass.h
浏览文件 @
3831a469
...
@@ -42,7 +42,8 @@ class SeqPoolConcatFusePass : public FusePassBase {
...
@@ -42,7 +42,8 @@ class SeqPoolConcatFusePass : public FusePassBase {
virtual
~
SeqPoolConcatFusePass
()
{}
virtual
~
SeqPoolConcatFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"seqpool_concat_fuse"
};
const
std
::
string
name_scope_
{
"seqpool_concat_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/squared_mat_sub_fuse_pass.h
浏览文件 @
3831a469
...
@@ -31,7 +31,8 @@ class SquaredMatSubFusePass : public FusePassBase {
...
@@ -31,7 +31,8 @@ class SquaredMatSubFusePass : public FusePassBase {
virtual
~
SquaredMatSubFusePass
()
{}
virtual
~
SquaredMatSubFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
const
std
::
string
name_scope_
{
"squared_mat_sub_fuse"
};
const
std
::
string
name_scope_
{
"squared_mat_sub_fuse"
};
};
};
...
...
paddle/fluid/framework/ir/transpose_flatten_concat_fuse_pass.h
浏览文件 @
3831a469
...
@@ -30,7 +30,8 @@ class TransposeFlattenConcatFusePass : public FusePassBase {
...
@@ -30,7 +30,8 @@ class TransposeFlattenConcatFusePass : public FusePassBase {
virtual
~
TransposeFlattenConcatFusePass
()
{}
virtual
~
TransposeFlattenConcatFusePass
()
{}
protected:
protected:
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
;
std
::
unique_ptr
<
ir
::
Graph
>
ApplyImpl
(
std
::
unique_ptr
<
ir
::
Graph
>
graph
)
const
override
;
};
};
}
// namespace ir
}
// namespace ir
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录