Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OAID
Tengine
比较版本
38ef8d46847dfa90fc6f8135aca3ad30414b7c5d...b5206a72a8813b6b2d0482408237a00c08fc6904
T
Tengine
项目概览
OAID
/
Tengine
8 个月 前同步成功
通知
53
Star
4429
Fork
1032
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
b5206a72a8813b6b2d0482408237a00c08fc6904
选择Git版本
...
目标分支
38ef8d46847dfa90fc6f8135aca3ad30414b7c5d
选择Git版本
比较
Commits (2)
https://gitcode.net/OAID/Tengine/-/commit/a23bfc0dafcad2cc269e24c9a72c42874b37a676
Bump styfle/cancel-workflow-action from 0.10.1 to 0.11.0 (#1392)
2022-11-14T18:06:09+08:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Bumps [styfle/cancel-workflow-action](<a href="https://github.com/styfle/cancel-workflow-action" rel="nofollow noreferrer noopener" target="_blank">https://github.com/styfle/cancel-workflow-action</a>) from 0.10.1 to 0.11.0. - [Release notes](<a href="https://github.com/styfle/cancel-workflow-action/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/styfle/cancel-workflow-action/releases</a>) - [Commits](<a href="https://github.com/styfle/cancel-workflow-action/compare/0.10.1...0.11.0" rel="nofollow noreferrer noopener" target="_blank">https://github.com/styfle/cancel-workflow-action/compare/0.10.1...0.11.0</a>) --- updated-dependencies: - dependency-name: styfle/cancel-workflow-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:support@github.com" title="support@github.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg3" style="text-decoration: none">N</a><a href="mailto:support@github.com" title="support@github.com">dependabot[bot]</a> <<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>></span> Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:support@github.com" title="support@github.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg5" style="text-decoration: none">N</a><a href="mailto:support@github.com" title="support@github.com">dependabot[bot]</a> <<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>></span> Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:49699333+dependabot%5Bbot%5D@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg6" style="text-decoration: none">N</a><a href="mailto:49699333+dependabot%5Bbot%5D@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">dependabot[bot]</a> <<a href="mailto:49699333+dependabot%5Bbot%5D@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">49699333+dependabot[bot]@users.noreply.github.com</a>></span>
https://gitcode.net/OAID/Tengine/-/commit/b5206a72a8813b6b2d0482408237a00c08fc6904
修复目前CPU进行Prelu int8计算中的bug (#1393)
2022-11-14T18:10:29+08:00
swcui
1019911631@qq.com
* fix(source/device/cpu/op/prelu/ref_prelu_int8()): fix bug * fix(source/device/cpu/op/prelu/ref_prelu_int8()): fix bug
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
.github/workflows/build-and-test.yml
.github/workflows/build-and-test.yml
+1
-1
.github/workflows/codeql-analysis.yml
.github/workflows/codeql-analysis.yml
+1
-1
source/device/cpu/op/prelu/prelu_ref.c
source/device/cpu/op/prelu/prelu_ref.c
+3
-3
未找到文件。
.github/workflows/build-and-test.yml
浏览文件 @
b5206a72
...
...
@@ -109,7 +109,7 @@ jobs:
runs-on
:
ubuntu-20.04
steps
:
-
name
:
cancel-previous-runs
uses
:
styfle/cancel-workflow-action@0.1
0.1
uses
:
styfle/cancel-workflow-action@0.1
1.0
with
:
access_token
:
${{ secrets.GITHUB_TOKEN }}
-
uses
:
actions/checkout@v3
...
...
.github/workflows/codeql-analysis.yml
浏览文件 @
b5206a72
...
...
@@ -32,7 +32,7 @@ jobs:
steps
:
-
name
:
cancel-previous-runs
uses
:
styfle/cancel-workflow-action@0.1
0.1
uses
:
styfle/cancel-workflow-action@0.1
1.0
with
:
access_token
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Checkout repository
...
...
source/device/cpu/op/prelu/prelu_ref.c
浏览文件 @
b5206a72
...
...
@@ -322,7 +322,7 @@ static int ref_prelu_int8(struct tensor* input_tensor, struct tensor* output_ten
int
dim3
=
input_tensor
->
dims
[
3
];
int8_t
*
data
=
(
int8_t
*
)
input_tensor
->
data
;
int8_t
*
out_data
=
(
int8_t
*
)
output_tensor
->
data
;
int8_t
*
slope
=
(
int8
_t
*
)
slope_tensor
->
data
;
fp16_t
*
slope_fp16
=
(
fp16
_t
*
)
slope_tensor
->
data
;
/* dequant */
float
input_scale
=
input_tensor
->
scale
;
...
...
@@ -340,11 +340,11 @@ static int ref_prelu_int8(struct tensor* input_tensor, struct tensor* output_ten
{
input_fp32
[
i
]
=
(
float
)
data
[
i
]
*
input_scale
;
}
//目前int8模式下,Prelu的斜率使用的是float16类型(不是int8类型),所以进行计算前需要先将其从float16转为float32。
for
(
int
i
=
0
;
i
<
slope_size
;
i
++
)
{
slope_fp32
[
i
]
=
(
float
)
slope
[
i
]
*
slope_scale
;
slope_fp32
[
i
]
=
fp16_to_fp32
(
slope_fp16
[
i
])
;
}
int
offset
=
0
;
// nchw
for
(
int
i
=
0
;
i
<
dim0
;
i
++
)
...
...