-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support min and max pooling for downsampling (#176)
* feat: support min and max pooling for downsampling * refactor: use the downsample method function exclusively * fix: wrong dependency for tinybrain * fixtest: use updated invocation of num_mips_from_memory_target
- Loading branch information
1 parent
4736d98
commit 478d1f3
Showing
6 changed files
with
93 additions
and
38 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
import enum | ||
from typing import Any, Dict, Tuple, Union, Optional | ||
|
||
ShapeType = Tuple[int, int, int] | ||
ShapeType = Tuple[int, int, int] | ||
|
||
class DownsampleMethods(enum.IntEnum): | ||
AVERAGE_POOLING = 1 | ||
MODE_POOLING = 2 | ||
MIN_POOLING = 3 | ||
MAX_POOLING = 4 | ||
STRIDING = 5 | ||
AUTO = 6 |
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