-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement (Fast)ResizeCropMirror in terms of Resize. Remove dead co…
…de. (#5123) * Remove old implementation * Implement ResizeCropMirror in terms of Resize * calculate resize params * adjust ROI to only resize the cropped part * adjust ROI to accommodate flipping * Extend mirror argument to handle other axes * Extend to 3D, videos and CHW layout (this comes naturally from ResizeBase, ResizeAttr and CropAttr, all of which support these). * Make FastResizeCropMirror an alias for ResizeCropMirror (just disable antialiasing to make it fast and backwards compatible) * Fix classification of ResizeCropMirror in eager mode (it's not stateful and never was) * Add python tests * tests vs separate operators (resize, crop mirror) * tests where there are two sources of flipping (mirror parameter & swapped RoI ends). * Remove fast_resize_crop_mirror from eager op tests, because it's deprecated and no eager wrapper is generated for it. --------- Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
- Loading branch information
Showing
15 changed files
with
317 additions
and
651 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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.