-
Notifications
You must be signed in to change notification settings - Fork 544
Optim-wip: Consolidate CenterCrop & improve ToRGB #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NarineK
merged 16 commits into
meta-pytorch:optim-wip
from
ProGamerGov:optim-wip-transform-improvements
Jan 4, 2021
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e0c36eb
Consolidate CenterCrop & improve ToRGB
ProGamerGov 5f56668
Add NaturalImage docs
ProGamerGov b87a384
Add error checking
ProGamerGov f279762
Add custom matrix ToRGB tests
ProGamerGov 0fdc3e9
Assert custom matrix size
ProGamerGov 7aec698
Improve CenterCrop code
ProGamerGov 8e21432
Fix lint errors & tests
ProGamerGov f3c8f9e
Remove "(object)"
ProGamerGov 9127159
Fix variable name spelling
ProGamerGov 6fca51a
Changes based on feedback
ProGamerGov 968dc01
Fix imports and types
ProGamerGov 95adc44
Fix type hint
ProGamerGov 34b9a5c
Fix transform tests
ProGamerGov 40dbb08
Fix test and update tutorials
ProGamerGov 91fddc4
Fix Torch 1.3.0 tests
ProGamerGov d09a953
Changes based on feedback
ProGamerGov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -33,9 +33,8 @@ def cleanup(self): | |
LossFunction = Callable[[ModuleOutputMapping], Tensor] | ||
SingleTargetLossFunction = Callable[[Tensor], Tensor] | ||
|
||
InitSize = Tuple[int, int] | ||
SquashFunc = Callable[[Tensor], Tensor] | ||
TransformValList = Union[Sequence[int], Sequence[float], Tensor] | ||
TransformVal = Union[int, float, Tensor] | ||
TransformSize = Union[List[int], Tuple[int], int] | ||
SquashFuncType = Callable[[Tensor], Tensor] | ||
|
||
NumSeqOrTensorType = Union[Sequence[int], Sequence[float], Tensor] | ||
NumOrTensorType = Union[int, float, Tensor] | ||
ProGamerGov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
IntSeqOrIntType = Union[List[int], Tuple[int], Tuple[int, int], int] | ||
ModelInputType = Union[Tuple[Tensor], Tensor] | ||
ProGamerGov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.