forked from pytorch/executorch
-
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.
Adjust pad value to meet the strict convolution shape calculation (py…
…torch#2059) Summary: torch.nn.Conv2d does not require the result of `(input_size + 2 * pad - dilation * (kernel_size - 1) - 1) / stride` must be an integer, but tosa currently strictly require this property. Add a simple function to adjust the pad value to meet the requirement. Pull Request resolved: pytorch#2059 Reviewed By: mcr229 Differential Revision: D54214138 Pulled By: digantdesai fbshipit-source-id: 8ae0d3a0aabe47c61767c7ba6afa6d525054a566
- Loading branch information
1 parent
f327e53
commit 24bd94e
Showing
2 changed files
with
60 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
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