Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
4f5095fd
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4f5095fd
编写于
7月 25, 2018
作者:
Z
zhangyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Unify FUSION_CONVADDRELU_OP usage
上级
d339ce47
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
26 deletion
+21
-26
src/operators/fusion_conv_add_relu_op.cpp
src/operators/fusion_conv_add_relu_op.cpp
+1
-1
src/operators/fusion_conv_add_relu_op.h
src/operators/fusion_conv_add_relu_op.h
+1
-1
src/operators/kernel/arm/conv_add_relu_kernel.cpp
src/operators/kernel/arm/conv_add_relu_kernel.cpp
+1
-1
src/operators/kernel/central-arm-func/conv_add_relu_arm_func.h
...perators/kernel/central-arm-func/conv_add_relu_arm_func.h
+1
-1
src/operators/kernel/conv_add_relu_kernel.h
src/operators/kernel/conv_add_relu_kernel.h
+1
-1
src/operators/op_param.h
src/operators/op_param.h
+1
-1
tools/op.cmake
tools/op.cmake
+15
-20
未找到文件。
src/operators/fusion_conv_add_relu_op.cpp
浏览文件 @
4f5095fd
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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. */
#ifdef CONVADDRELU_OP
#ifdef
FUSION_
CONVADDRELU_OP
#include "fusion_conv_add_relu_op.h"
#include "fusion_conv_add_relu_op.h"
#include "operators/math/conv_func.h"
#include "operators/math/conv_func.h"
...
...
src/operators/fusion_conv_add_relu_op.h
浏览文件 @
4f5095fd
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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. */
#ifdef CONVADDRELU_OP
#ifdef
FUSION_
CONVADDRELU_OP
#pragma once
#pragma once
...
...
src/operators/kernel/arm/conv_add_relu_kernel.cpp
浏览文件 @
4f5095fd
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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. */
#ifdef FUSION_CONVADD
_
RELU_OP
#ifdef FUSION_CONVADDRELU_OP
#include "operators/kernel/conv_add_relu_kernel.h"
#include "operators/kernel/conv_add_relu_kernel.h"
#include "operators/kernel/central-arm-func/conv_add_relu_arm_func.h"
#include "operators/kernel/central-arm-func/conv_add_relu_arm_func.h"
...
...
src/operators/kernel/central-arm-func/conv_add_relu_arm_func.h
浏览文件 @
4f5095fd
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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. */
#ifdef FUSION_CONVADD
_
RELU_OP
#ifdef FUSION_CONVADDRELU_OP
#pragma once
#pragma once
#include <vector>
#include <vector>
...
...
src/operators/kernel/conv_add_relu_kernel.h
浏览文件 @
4f5095fd
...
@@ -14,7 +14,7 @@ limitations under the License. */
...
@@ -14,7 +14,7 @@ limitations under the License. */
#pragma once
#pragma once
#ifdef FUSION_CONVADD
_
RELU_OP
#ifdef FUSION_CONVADDRELU_OP
#include <vector>
#include <vector>
#include "framework/ddim.h"
#include "framework/ddim.h"
...
...
src/operators/op_param.h
浏览文件 @
4f5095fd
...
@@ -962,7 +962,7 @@ class FusionConvAddParam : public OpParam {
...
@@ -962,7 +962,7 @@ class FusionConvAddParam : public OpParam {
Print
&
operator
<<
(
Print
&
printer
,
const
FusionConvAddParam
&
conv_param
);
Print
&
operator
<<
(
Print
&
printer
,
const
FusionConvAddParam
&
conv_param
);
#endif
#endif
#ifdef FUSION_CONVADD
_
RELU_OP
#ifdef FUSION_CONVADDRELU_OP
class
FusionConvAddReluParam
:
public
FusionConvAddParam
{
class
FusionConvAddReluParam
:
public
FusionConvAddParam
{
public:
public:
FusionConvAddReluParam
(
const
VariableNameMap
&
inputs
,
FusionConvAddReluParam
(
const
VariableNameMap
&
inputs
,
...
...
tools/op.cmake
浏览文件 @
4f5095fd
...
@@ -10,7 +10,7 @@ if ("googlenet" IN_LIST NET)
...
@@ -10,7 +10,7 @@ if ("googlenet" IN_LIST NET)
set
(
POOL_OP ON
)
set
(
POOL_OP ON
)
set
(
RELU_OP ON
)
set
(
RELU_OP ON
)
set
(
FUSION_CONVADD_OP ON
)
set
(
FUSION_CONVADD_OP ON
)
set
(
FUSION_CONVADD
_
RELU_OP ON
)
set
(
FUSION_CONVADDRELU_OP ON
)
set
(
FOUND_MATCH ON
)
set
(
FOUND_MATCH ON
)
endif
()
endif
()
...
@@ -72,15 +72,18 @@ endif()
...
@@ -72,15 +72,18 @@ endif()
if
(
"FPGAnets"
IN_LIST NET
)
if
(
"FPGAnets"
IN_LIST NET
)
message
(
"FPGAnets enabled"
)
message
(
"FPGAnets enabled"
)
set
(
FUSION_CONVRELU_OP ON
)
set
(
FUSION_CONV
ADD
RELU_OP ON
)
set
(
FUSION_CONV
BNSCALE
_OP ON
)
set
(
FUSION_CONV
ADDBNRELU
_OP ON
)
set
(
FUSION_CONV
BNSCALERELU_OP ON
)
set
(
FUSION_CONV
ADDBN_OP ON
)
set
(
FUSION_POOLBN_OP ON
)
set
(
FUSION_POOLBN_OP ON
)
set
(
FUSION_ELEMENTWISEADDRELU_OP ON
)
set
(
FUSION_ELEMENTWISEADDRELU_OP ON
)
set
(
FUSION_FC_OP ON
)
set
(
FUSION_FCRELU_OP ON
)
set
(
REGION_OP ON
)
set
(
REGION_OP ON
)
set
(
POOL_OP ON
)
set
(
POOL_OP ON
)
set
(
CONCAT_OP ON
)
set
(
CONCAT_OP ON
)
set
(
SOFTMAX_OP ON
)
set
(
SOFTMAX_OP ON
)
set
(
DROPOUT_OP ON
)
set
(
FOUND_MATCH ON
)
set
(
FOUND_MATCH ON
)
endif
()
endif
()
...
@@ -95,7 +98,7 @@ if(NOT FOUND_MATCH)
...
@@ -95,7 +98,7 @@ if(NOT FOUND_MATCH)
set
(
DEPTHWISECONV_OP ON
)
set
(
DEPTHWISECONV_OP ON
)
set
(
ELEMENTWISEADD_OP ON
)
set
(
ELEMENTWISEADD_OP ON
)
set
(
FUSION_CONVADD_OP ON
)
set
(
FUSION_CONVADD_OP ON
)
set
(
CONVADDRELU_OP ON
)
set
(
FUSION_
CONVADDRELU_OP ON
)
set
(
FUSION_FC_OP ON
)
set
(
FUSION_FC_OP ON
)
set
(
LRN_OP ON
)
set
(
LRN_OP ON
)
set
(
MUL_OP ON
)
set
(
MUL_OP ON
)
...
@@ -107,7 +110,6 @@ if(NOT FOUND_MATCH)
...
@@ -107,7 +110,6 @@ if(NOT FOUND_MATCH)
set
(
SIGMOID_OP ON
)
set
(
SIGMOID_OP ON
)
set
(
SOFTMAX_OP ON
)
set
(
SOFTMAX_OP ON
)
set
(
TRANSPOSE_OP ON
)
set
(
TRANSPOSE_OP ON
)
set
(
FUSION_CONVADD_RELU_OP ON
)
set
(
FUSION_CONVADDBNRELU_OP ON
)
set
(
FUSION_CONVADDBNRELU_OP ON
)
set
(
FUSION_DWCONVBNRELU_OP ON
)
set
(
FUSION_DWCONVBNRELU_OP ON
)
set
(
FUSION_CONVBNRELU_OP ON
)
set
(
FUSION_CONVBNRELU_OP ON
)
...
@@ -126,7 +128,7 @@ endif()
...
@@ -126,7 +128,7 @@ endif()
# option(DEPTHWISECONV_OP "" ON)
# option(DEPTHWISECONV_OP "" ON)
# option(ELEMENTWISEADD_OP "" ON)
# option(ELEMENTWISEADD_OP "" ON)
# option(FUSION_CONVADD_OP "" ON)
# option(FUSION_CONVADD_OP "" ON)
# option(CONVADDRELU_OP "" ON)
# option(
FUSION_
CONVADDRELU_OP "" ON)
# option(FUSION_FC_OP "" ON)
# option(FUSION_FC_OP "" ON)
# option(LRN_OP "" ON)
# option(LRN_OP "" ON)
# option(MUL_OP "" ON)
# option(MUL_OP "" ON)
...
@@ -138,7 +140,6 @@ endif()
...
@@ -138,7 +140,6 @@ endif()
# option(SIGMOID_OP "" ON)
# option(SIGMOID_OP "" ON)
# option(SOFTMAX_OP "" ON)
# option(SOFTMAX_OP "" ON)
# option(TRANSPOSE_OP "" ON)
# option(TRANSPOSE_OP "" ON)
# option(FUSION_CONVADD_RELU_OP "" ON)
# endif ()
# endif ()
if
(
BATCHNORM_OP
)
if
(
BATCHNORM_OP
)
...
@@ -162,8 +163,8 @@ endif()
...
@@ -162,8 +163,8 @@ endif()
if
(
FUSION_CONVADD_OP
)
if
(
FUSION_CONVADD_OP
)
add_definitions
(
-DFUSION_CONVADD_OP
)
add_definitions
(
-DFUSION_CONVADD_OP
)
endif
()
endif
()
if
(
CONVADDRELU_OP
)
if
(
FUSION_
CONVADDRELU_OP
)
add_definitions
(
-DCONVADDRELU_OP
)
add_definitions
(
-D
FUSION_
CONVADDRELU_OP
)
endif
()
endif
()
if
(
FUSION_FC_OP
)
if
(
FUSION_FC_OP
)
add_definitions
(
-DFUSION_FC_OP
)
add_definitions
(
-DFUSION_FC_OP
)
...
@@ -198,9 +199,6 @@ endif()
...
@@ -198,9 +199,6 @@ endif()
if
(
TRANSPOSE_OP
)
if
(
TRANSPOSE_OP
)
add_definitions
(
-DTRANSPOSE_OP
)
add_definitions
(
-DTRANSPOSE_OP
)
endif
()
endif
()
if
(
FUSION_CONVADD_RELU_OP
)
add_definitions
(
-DFUSION_CONVADD_RELU_OP
)
endif
()
if
(
FUSION_CONVADDBNRELU_OP
)
if
(
FUSION_CONVADDBNRELU_OP
)
add_definitions
(
-DFUSION_CONVADDBNRELU_OP
)
add_definitions
(
-DFUSION_CONVADDBNRELU_OP
)
endif
()
endif
()
...
@@ -231,14 +229,11 @@ if (IM2SEQUENCE_OP)
...
@@ -231,14 +229,11 @@ if (IM2SEQUENCE_OP)
add_definitions
(
-DIM2SEQUENCE_OP
)
add_definitions
(
-DIM2SEQUENCE_OP
)
endif
()
endif
()
if
(
FUSION_CONVRELU_OP
)
if
(
FUSION_CONVADDBN_OP
)
add_definitions
(
-DFUSION_CONVRELU_OP
)
add_definitions
(
-DFUSION_CONVADDBN_OP
)
endif
()
if
(
FUSION_CONVBNSCALE_OP
)
add_definitions
(
-DFUSION_CONVBNSCALE_OP
)
endif
()
endif
()
if
(
FUSION_
CONVBNSCALE
RELU_OP
)
if
(
FUSION_
FC
RELU_OP
)
add_definitions
(
-DFUSION_
CONVBNSCALE
RELU_OP
)
add_definitions
(
-DFUSION_
FC
RELU_OP
)
endif
()
endif
()
if
(
FUSION_POOLBN_OP
)
if
(
FUSION_POOLBN_OP
)
add_definitions
(
-DFUSION_POOLBN_OP
)
add_definitions
(
-DFUSION_POOLBN_OP
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录