Skip to content

添加NPU ResizeBilinearV2算子的convert#646

Merged
shaundai-tencent merged 6 commits into
Tencent:masterfrom
KevinZ-718:npu_upsample
Dec 30, 2020
Merged

添加NPU ResizeBilinearV2算子的convert#646
shaundai-tencent merged 6 commits into
Tencent:masterfrom
KevinZ-718:npu_upsample

Conversation

@KevinZ-718
Copy link
Copy Markdown
Contributor

No description provided.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Dec 16, 2020

Codecov Report

Merging #646 (597a227) into master (83787e0) will decrease coverage by 0.34%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #646      +/-   ##
==========================================
- Coverage   33.34%   33.00%   -0.35%     
==========================================
  Files         287      288       +1     
  Lines        8343     8472     +129     
==========================================
+ Hits         2782     2796      +14     
- Misses       5561     5676     +115     
Impacted Files Coverage Δ
source/tnn/core/context.cc 53.84% <0.00%> (-4.49%) ⬇️
source/tnn/core/default_network.cc 74.76% <0.00%> (-0.85%) ⬇️
include/tnn/core/common.h 100.00% <0.00%> (ø)
source/tnn/utils/wingorad_generater.cc
source/tnn/utils/md5.cc 0.98% <0.00%> (ø)
source/tnn/utils/winograd_generator.cc 0.00% <0.00%> (ø)
source/tnn/core/abstract_network.h 100.00% <0.00%> (+11.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83787e0...597a227. Read the comment docs.

@shaundai-tencent shaundai-tencent self-requested a review December 24, 2020 09:03
Comment thread source/tnn/device/huawei_npu/convert/npu_upsample_layer_convert.cc
Comment thread source/tnn/device/huawei_npu/convert/npu_upsample_layer_convert.cc Outdated
Comment thread source/tnn/device/huawei_npu/convert/npu_upsample_layer_convert.cc Outdated
@shaundai-tencent shaundai-tencent linked an issue Dec 24, 2020 that may be closed by this pull request
}

// only support scale is int
if (scale_w != (int)scale_w || scale_h != (int)scale_h) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个判断只是在nearest模式下才会需要,否则Bilinear模式也不支持非整数scale了。

@shaundai-tencent shaundai-tencent merged commit 2483c38 into Tencent:master Dec 30, 2020
@shaundai-tencent
Copy link
Copy Markdown
Collaborator

非常感谢,已经合入master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

添加TNN npu后端支持 ResizeBilinearV2算子

3 participants