From 65c3743eac29a794f333beab3b18fefa5d96891c Mon Sep 17 00:00:00 2001 From: ano-jiang <1928000585@qq.com> Date: Fri, 12 Apr 2024 10:37:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9C=80=E8=BF=91=E9=82=BB=E4=B8=8A?= =?UTF-8?q?=E9=87=87=E6=A0=B7=E7=AE=97=E5=AD=90=E4=B8=AD=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E5=86=85=E5=B1=82=E5=BE=AA=E7=8E=AF=E4=B8=AD=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E5=88=A4=E6=96=AD=E7=9B=AE=E6=A0=87=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E5=88=97=E6=95=B0=E4=B8=8E=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=B0=8F=E4=BA=8E=E7=9B=AE=E6=A0=87=E5=9B=BE?= =?UTF-8?q?=E5=83=8F=E7=9A=84=E5=AE=BD=E5=92=8C=E9=AB=98=EF=BC=8C=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E4=BB=A3=E7=A0=81=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E4=B8=8A=E4=B8=A4=E4=B8=AA=E6=9D=A1=E4=BB=B6=E6=98=AF=E5=BF=85?= =?UTF-8?q?=E7=84=B6=E6=88=90=E7=AB=8B=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/layer/details/upsample.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/layer/details/upsample.cpp b/source/layer/details/upsample.cpp index 686dcf4a..14f9648b 100644 --- a/source/layer/details/upsample.cpp +++ b/source/layer/details/upsample.cpp @@ -122,18 +122,13 @@ StatusCode UpSampleLayer::Forward(const std::vector= output_w) { - continue; - } float* output_col_ptr = output_channel.colptr(dest_w + sw); for (uint32_t h = 0; h < input_h; ++h) { const uint32_t dest_h = h * scale_h; float* output_ptr = output_col_ptr + dest_h; const float input_value = *(input_col_ptr + h); for (uint32_t sh = 0; sh < scale_h; ++sh) { - if (dest_h + sh < output_h) { - *(output_ptr + sh) = input_value; - } + *(output_ptr + sh) = input_value; } } } From acf5078633e6a49eccb6e3ef98e4155d900cd692 Mon Sep 17 00:00:00 2001 From: delve-wang <1830638446@qq.com> Date: Fri, 12 Apr 2024 13:44:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6148855d..5662f505 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ - [TypeFloat](https://github.com/TypeFloat) - [Jasmine-up](https://github.com/Jasmine-up) - [PerrySkywalker](https://github.com/PerrySkywalker) +- [delve-wang](https://github.com/delve-wang) ### 如何参与项目贡献? 1. 提交代码增加新功能或修改bug;