-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix typo for interp_v2,test=develop #26843
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -114,6 +115,8 @@ def interpolate(x, | |||
smoother than corresponding surfaces obtained by bilinear interpolation or | |||
nearest-neighbor interpolation. | |||
|
|||
Area interpolation is same as adaptive avg pooling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elaborate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Area 插值 找不到比较官方的概念介绍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be either removed or revised, as interpolation is definitely not the same as pooling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok,has been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also delete line 91
and implementation codes in line 287, and line 316 ~ line 322
please run a grep on the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polish the notes, please review~
in_d, in_h, in_w -> depth, height, width |
And :attr:`out_shape` has a higher priority than :attr:`scale_factor`.Has to match input size if it is a list. | ||
scale_factor (float|Tensor|list|tuple|None): The multiplier for the input height or width. At | ||
least one of :attr:`size` or :attr:`scale_factor` must be set. | ||
And :attr:`size` has a higher priority than :attr:`scale_factor`.Has to match input size if it is a list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:attr:scale_factor
.Has to match input size if it is a list.
是tensor的时候也要match吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thx
python/paddle/nn/layer/common.py
Outdated
And :attr:`out_shape` has a higher priority than :attr:`scale_factor`.Has to match input size if it is a list. | ||
scale_factor (float|Tensor|list|tuple|None): The multiplier for the input height or width. At | ||
least one of :attr:`size` or :attr:`scale_factor` must be set. | ||
And :attr:`size` has a higher priority than :attr:`scale_factor`.Has to match input size if it is a list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
python/paddle/nn/layer/common.py
Outdated
And :attr:`out_shape` has a higher priority than :attr:`scale_factor`. | ||
scale_factor (float|int|list|tuple|Tensor|None): The multiplier for the input height or width. At | ||
least one of :attr:`size` or :attr:`scale_factor` must be set. | ||
And :attr:`size` has a higher priority than :attr:`scale_factor`. | ||
Default: None. Has to match input size if it is a list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix typo for interp_v2,test=develop * align with torch, test=develop * add area mode, test=develop * fix bug, test=develop * format notes, test=develop * update for converage, test=develop * fix bilinear, test=develop * fix bicubic, test=develop * fix typo, test=develop * fix coverage, test=develop * fix helper.input_dtype, test=develop * polish notes, test=develop * polish notes, test=develop * polish notes, test=develop
* fix typo for interp_v2,test=develop * align with torch, test=develop * add area mode, test=develop * fix bug, test=develop * format notes, test=develop * update for converage, test=develop * fix bilinear, test=develop * fix bicubic, test=develop * fix typo, test=develop * fix coverage, test=develop * fix helper.input_dtype, test=develop * polish notes, test=develop * polish notes, test=develop * polish notes, test=develop
PR types
Bug fixes
PR changes
APIs
Describe