...
 
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> &lt;<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>&gt;</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> &lt;<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>&gt;</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> &lt;<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>&gt;</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
......@@ -109,7 +109,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/cancel-workflow-action@0.10.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
......
......@@ -32,7 +32,7 @@ jobs:
steps:
- name: cancel-previous-runs
uses: styfle/cancel-workflow-action@0.10.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
......
......@@ -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++)
......