-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add decomposition for Grid_Sample and Floor op (#54)
Decomposition for torch.grid_sample and torch.floor op has been added. Grid Sample op decomposition has been adapted from bilinear grid sample from [here](https://mmcv.readthedocs.io/en/latest/_modules/mmcv/ops/point_sample.html). Currently this decomposition supports bilinear interpolation mode with 4d input shapes only, nearest interpolation mode and 5d inputs support will be added later. The change in DecomposeMultiDimSqueeze callback has been added to handle this failure when squeeze_() was used. `TypeError: 'NoneType' object is not iterable` So in that cases, all dimensions with value 1 will be squeezed.
- Loading branch information
Showing
1 changed file
with
204 additions
and
1 deletion.
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