Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
f30ae5ff
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
332
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看板
提交
f30ae5ff
编写于
4月 20, 2020
作者:
C
chenjiaoAngel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add gemm+relu6
上级
a4770bd7
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
396 addition
and
27 deletion
+396
-27
lite/backends/arm/math/conv_impl.cc
lite/backends/arm/math/conv_impl.cc
+5
-2
lite/backends/arm/math/gemm_prepacked_int8.cc
lite/backends/arm/math/gemm_prepacked_int8.cc
+391
-25
未找到文件。
lite/backends/arm/math/conv_impl.cc
浏览文件 @
f30ae5ff
...
...
@@ -264,6 +264,7 @@ void conv1x1s1_gemm_int8(const int8_t* i_data,
}
bool
flag_relu
=
param
.
fuse_relu
;
bool
flag_bias
=
param
.
bias
!=
nullptr
;
auto
act_param
=
param
.
activation_param
;
//! use gemv when the output channel size = 1
for
(
int
b
=
0
;
b
<
num
;
++
b
)
{
// dC
...
...
@@ -294,9 +295,9 @@ void conv1x1s1_gemm_int8(const int8_t* i_data,
n
,
k
,
flag_bias
,
flag_relu
,
false
,
scale_group
,
act_param
,
ctx
);
}
}
...
...
@@ -474,6 +475,8 @@ void conv_im2col_gemm_int8(const int8_t* i_data,
bool
flag_relu
=
param
.
fuse_relu
;
bool
flag_bias
=
param
.
bias
!=
nullptr
;
auto
act_param
=
param
.
activation_param
;
int
hblock
=
get_hblock_int8
(
ctx
);
int
k_roundup
=
ROUNDUP
(
k
,
KBLOCK_INT8
);
int
m_roundup
=
ROUNDUP
(
m
,
hblock
);
...
...
@@ -534,9 +537,9 @@ void conv_im2col_gemm_int8(const int8_t* i_data,
n
,
k
,
flag_bias
,
flag_relu
,
false
,
scale_group
,
act_param
,
ctx
);
}
}
...
...
lite/backends/arm/math/gemm_prepacked_int8.cc
浏览文件 @
f30ae5ff
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录