Skip to content

Resize optimization for all architectures#11956

Merged
yihonglyu merged 2 commits into
masterfrom
yilyu/nhwc_resize_opt_for_all
Jun 29, 2022
Merged

Resize optimization for all architectures#11956
yihonglyu merged 2 commits into
masterfrom
yilyu/nhwc_resize_opt_for_all

Conversation

@yihonglyu

Copy link
Copy Markdown
Contributor

With this patch, it optimizes Resize when the input X is 4D int8/uint8 tensor
and the mode is linear by:

  • Transforming NCHW Resize to NHWC variant
  • Using the NHWC Resize kernel without floating-point computation

It improves DeepLab V3 with uint8 quantization by 19% on X64. It also improves
Resize of DeepLab V3 with int8 quantization by 15%~18% on X64.

With this patch, it optimizes Resize when the input X is 4D int8/uint8 tensor
and the mode is linear by:

* Transforming NCHW Resize to NHWC variant
* Using the NHWC Resize kernel without floating-point computation

It improves DeepLab V3 with uint8 quantization by 19% on X64. It also improves
Resize of DeepLab V3 with int8 quantization by 15%~18% on X64.
yufenglee
yufenglee previously approved these changes Jun 22, 2022
@lgtm-com

lgtm-com Bot commented Jun 22, 2022

Copy link
Copy Markdown

This pull request introduces 1 alert when merging b555a53 into e24349b - view on LGTM.com

new alerts:

  • 1 for Multiplication result converted to larger type

@yihonglyu yihonglyu merged commit c8cd36d into master Jun 29, 2022
@yihonglyu yihonglyu deleted the yilyu/nhwc_resize_opt_for_all branch June 29, 2022 16:19
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.

2 participants