fix: Implement aten.mean.default and aten.mean.dim converters#1810
Merged
gs-olive merged 1 commit intopytorch:mainfrom Apr 21, 2023
Merged
fix: Implement aten.mean.default and aten.mean.dim converters#1810gs-olive merged 1 commit intopytorch:mainfrom
aten.mean.default and aten.mean.dim converters#1810gs-olive merged 1 commit intopytorch:mainfrom
Conversation
0ed0447 to
f9c46da
Compare
- Replace existing implementation of aten.mean.dim with general version invoking centralized `add_reduce_layer` utility - Add implementation of aten.mean.default by refactoring default case to be a special invocation of aten.mean.dim (specifically, one with `dim` being all dimensions in the Tensor and `keepdim` being False). - Add defaults for optional arguments in converters - Add test cases for combinations of input options to the converters
f9c46da to
2347441
Compare
Contributor
Author
|
Removed dependency on other PR, made this a standalone converter addition. @wushirong @frank-wei |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
add_reduce_layerutilitydimbeing all dimensions in the Tensor andkeepdimbeing False).Fixes #1742
Addresses First Bug in #1740
Type of change
Checklist: