-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 boardcasting superlink #48434
Merged
Merged
fix boardcasting superlink #48434
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4ceb2ed
fix boardcasting superlink
enkilee 49e2a06
Merge branch 'PaddlePaddle:develop' into develop
enkilee 91acc93
Update bitwise_op.cc
enkilee 267208b
Merge branch 'PaddlePaddle:develop' into develop
enkilee 53a2b53
Merge branch 'PaddlePaddle:develop' into develop
enkilee 667c9c1
fix typo errors(from 48186)
enkilee 8075bd8
Merge branch 'PaddlePaddle:develop' into develop
enkilee 505d54b
Merge branch 'develop' of https://github.com/enkilee/Paddle into develop
enkilee d026a88
Update python/paddle/distribution/uniform.py
enkilee 2dcf0cc
Update math.py
enkilee 0a100fb
Update math.py
enkilee b9c45ac
refix
enkilee c2dc469
Update logic.py
Ligoml dbc4cc4
BaseTransform api doc; test=docs_preview
Ligoml 54ae5c8
Update python/paddle/vision/transforms/transforms.py
Ligoml 8422e6d
for text block; test=docs_preview
Ligoml 7571bc9
Merge branch 'PaddlePaddle:develop' into develop
enkilee 32d01a2
Update transforms.py
enkilee e1ffe75
Merge branch 'PaddlePaddle:develop' into develop
enkilee 595d6cb
Merge branch 'PaddlePaddle:develop' into develop
enkilee a9c9b87
Merge branch 'PaddlePaddle:develop' into develop
enkilee 2c0a529
Merge branch 'PaddlePaddle:develop' into develop
enkilee 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 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
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 |
---|---|---|
|
@@ -420,7 +420,9 @@ def pow(x, y, name=None): | |
out = x^{y} | ||
|
||
Note: | ||
``paddle.pow`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.pow`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensors | ||
|
||
|
||
Args: | ||
|
@@ -679,7 +681,9 @@ def subtract(x, y, name=None): | |
out = x - y | ||
|
||
Note: | ||
``paddle.subtract`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.subtract`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float32, float64, int32, int64. | ||
|
@@ -773,7 +777,9 @@ def divide(x, y, name=None): | |
out = x / y | ||
|
||
Note: | ||
``paddle.divide`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.divide`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float32, float64, int32, int64. | ||
|
@@ -817,7 +823,9 @@ def floor_divide(x, y, name=None): | |
out = trunc(x / y) | ||
|
||
Note: | ||
``paddle.floor_divide`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.floor_divide`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
Also note that the name ``floor_divide`` can be misleading, as the quotinents are actually rounded toward zero, not toward negative infinite. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
Args: | ||
|
@@ -859,7 +867,9 @@ def remainder(x, y, name=None): | |
out = x \% y | ||
|
||
Note: | ||
``paddle.remainder`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.remainder`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float16, float32, float64, int32, int64. | ||
|
@@ -924,7 +934,9 @@ def multiply(x, y, name=None): | |
out = x * y | ||
|
||
Note: | ||
``paddle.multiply`` supports broadcasting. If you would like to know more about broadcasting, please refer to :ref:`user_guide_broadcasting`. | ||
``paddle.multiply`` supports broadcasting. If you would like to know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, its data type should be one of float32, float64, int32, int64, bool. | ||
|
@@ -980,7 +992,9 @@ def maximum(x, y, name=None): | |
out = max(x, y) | ||
|
||
Note: | ||
``paddle.maximum`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.maximum`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float32, float64, int32, int64. | ||
|
@@ -1046,7 +1060,9 @@ def minimum(x, y, name=None): | |
out = min(x, y) | ||
|
||
Note: | ||
``paddle.minimum`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.minimum`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float32, float64, int32, int64. | ||
|
@@ -1114,7 +1130,9 @@ def fmax(x, y, name=None): | |
out = fmax(x, y) | ||
|
||
Note: | ||
``paddle.fmax`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.fmax`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float16, float32, float64, int32, int64. | ||
|
@@ -1182,7 +1200,9 @@ def fmin(x, y, name=None): | |
out = fmin(x, y) | ||
|
||
Note: | ||
``paddle.fmin`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` . | ||
``paddle.fmin`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): the input tensor, it's data type should be float16, float32, float64, int32, int64. | ||
|
@@ -3962,7 +3982,12 @@ def any(x, axis=None, keepdim=False, name=None): | |
|
||
def broadcast_shape(x_shape, y_shape): | ||
""" | ||
The function returns the shape of doing operation with broadcasting on tensors of x_shape and y_shape, please refer to :ref:`user_guide_broadcasting` for more details. | ||
The function returns the shape of doing operation with broadcasting on tensors of x_shape and y_shape, please refer to boardcasting for more details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please refer to boardcasting for more details. 和下文的note重复了,删掉吧 |
||
|
||
Note: | ||
If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x_shape (list[int]|tuple[int]): A shape of tensor. | ||
|
@@ -4991,7 +5016,9 @@ def heaviside(x, y, name=None): | |
\right. | ||
|
||
Note: | ||
``paddle.heaviside`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting`. | ||
``paddle.heaviside`` supports broadcasting. If you want know more about broadcasting, please refer to `Introduction to Tensor`_ . | ||
|
||
.. _Introduction to Tensor: ../../guides/beginner/tensor_en.html#chapter5-broadcasting-of-tensor | ||
|
||
Args: | ||
x (Tensor): The input tensor of Heaviside step function, it's data type should be float16, float32, float64, int32 or int64. | ||
|
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.
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.
good job!
我在检查文档的过程中发现paddle.bitwise_not在文档中遗漏了broadcasting的说明,辛苦加上~