forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize UpSampleNearest 1d 2d and 3d performance on CPU (pytorch#31452)
Summary: This PR aims at improving `UpSample` performance with `mode='nearest'` on 1D 2D and 3D, both inference and training are covered. Current implementation from 'ATen' doesn't have parallelization. 1. single socket inference speedup for 1d, 2d and 3d: **63x, 57x, 46x**. 2. single core inference speedup for 1d, 2d and 3d: **5.9x, 4.6x, 3.4x**. 3. dual sockets training speedup for 1d, 2d and 3d: **38x, 33x, 65x** Pull Request resolved: pytorch#31452 Differential Revision: D20077828 Pulled By: VitalyFedyunin fbshipit-source-id: a7815cf2ae344696067d2ec63bd4f4e858eaafff
- Loading branch information
1 parent
112cecc
commit 39f78db
Showing
5 changed files
with
352 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.