Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize relies on interpolate's native uint8 handling #7262

Closed

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Feb 15, 2023

Description:

Context: #7217

Benchmarks:

[-- Resize cpu torch.uint8 InterpolationMode.NEAREST -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      462    |        492
      (16, 3, 400, 400)  |     6870    |      10100

Times are in microseconds (us).

[- Resize cpu torch.uint8 InterpolationMode.BILINEAR -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      330    |        853
      (16, 3, 400, 400)  |     4480    |      14900

Times are in microseconds (us).

[-- Resize cpu torch.uint8 InterpolationMode.BICUBIC -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      1.7    |        1.7
      (16, 3, 400, 400)  |     28.6    |       28.7

Times are in milliseconds (ms).

Source

@vfdev-5 vfdev-5 marked this pull request as draft February 16, 2023 11:37
@vfdev-5 vfdev-5 closed this Feb 16, 2023
@vfdev-5 vfdev-5 reopened this Feb 16, 2023
@vfdev-5 vfdev-5 force-pushed the proto-resize-uint8-native-support branch 5 times, most recently from 2f4ffec to d00d8d4 Compare February 16, 2023 14:06
@vfdev-5 vfdev-5 force-pushed the proto-resize-uint8-native-support branch from d00d8d4 to 7c50a59 Compare February 16, 2023 14:12
@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented May 4, 2023

Closing in favor of #7557

@vfdev-5 vfdev-5 closed this May 4, 2023
@vfdev-5 vfdev-5 deleted the proto-resize-uint8-native-support branch May 4, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants