Skip to content
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

[Docathon] Fix NO.41-50 API Labelpdate en doc refer label #58329

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/paddle/nn/functional/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def binary_cross_entropy_with_logits(
logit, label, weight=None, reduction='mean', pos_weight=None, name=None
):
r"""
Combine the sigmoid layer and the :ref:`api_nn_loss_BCELoss` layer.
Combine the sigmoid layer and the :ref:`api_paddle_nn_BCELoss` layer.

This measures the element-wise probability error in classification tasks
in which each class is independent.
Expand Down
18 changes: 9 additions & 9 deletions python/paddle/nn/functional/pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def avg_pool1d(
):
"""
This API implements average pooling 1d operation,
See more details in :ref:`api_nn_pooling_AvgPool1d` .
See more details in :ref:`api_paddle_nn_AvgPool1d` .

Args:
x (Tensor): The input tensor of pooling operator which is a 3-D tensor with
Expand Down Expand Up @@ -312,7 +312,7 @@ def avg_pool2d(
):
"""
This API implements average pooling 2d operation.
See more details in :ref:`api_nn_pooling_AvgPool2d` .
See more details in :ref:`api_paddle_nn_AvgPool2d` .

Args:
x (Tensor): The input tensor of pooling operator which is a 4-D tensor with
Expand Down Expand Up @@ -445,7 +445,7 @@ def avg_pool3d(
):
"""
This API implements average pooling 3d operation.
See more details in :ref:`api_nn_pooling_AvgPool3d` .
See more details in :ref:`api_paddle_nn_AvgPool3d` .

Args:
x (Tensor): The input tensor of pooling operator, which is a 5-D tensor with
Expand Down Expand Up @@ -572,7 +572,7 @@ def max_pool1d(
):
"""
This API implements max pooling 1d opereation.
See more details in :ref:`api_nn_pooling_MaxPool1d` .
See more details in :ref:`api_paddle_nn_MaxPool1d` .

Args:
x (Tensor): The input tensor of pooling operator which is a 3-D tensor with
Expand Down Expand Up @@ -1184,7 +1184,7 @@ def max_pool2d(
):
"""
This API implements max pooling 2d operation.
See more details in :ref:`api_nn_pooling_MaxPool2d` .
See more details in :ref:`api_paddle_nn_MaxPool2d` .

Args:
x (Tensor): The input tensor of pooling operator which is a 4-D tensor with
Expand Down Expand Up @@ -1484,7 +1484,7 @@ def adaptive_avg_pool1d(x, output_size, name=None):
Adaptive average pooling 1d operation on :attr:`x` according to :attr:`output_size`.

Notes:
See more details in :ref:`api_nn_pooling_AdaptiveAvgPool1d` .
See more details in :ref:`api_paddle_nn_AdaptiveAvgPool1d` .

Args:
x (Tensor): The input Tensor of pooling, which is a 3-D tensor with shape :math:`[N, C, L]`, where :math:`N` is batch size, :math:`C` is the number of channels and :math:`L` is the length of the feature. The data type is float32 or float64.
Expand Down Expand Up @@ -1825,7 +1825,7 @@ def adaptive_avg_pool3d(x, output_size, data_format='NCDHW', name=None):
def adaptive_max_pool1d(x, output_size, return_mask=False, name=None):
"""
This API implements adaptive max pooling 1d operation.
See more details in :ref:`api_nn_pooling_AdaptiveMaxPool1d` .
See more details in :ref:`api_paddle_nn_AdaptiveMaxPool1d` .

Args:
x (Tensor): The input tensor of pooling operator, which is a 3-D tensor
Expand Down Expand Up @@ -1921,7 +1921,7 @@ def adaptive_max_pool1d(x, output_size, return_mask=False, name=None):
def adaptive_max_pool2d(x, output_size, return_mask=False, name=None):
"""
This operation applies a 2D adaptive max pooling on input tensor.
See more details in :ref:`api_nn_pooling_AdaptiveMaxPool2d` .
See more details in :ref:`api_paddle_nn_AdaptiveMaxPool2d` .

Args:
x (Tensor): The input tensor of adaptive max pool2d operator, which is a 4-D tensor. The data type can be float16, float32, float64, int32 or int64.
Expand Down Expand Up @@ -2007,7 +2007,7 @@ def adaptive_max_pool2d(x, output_size, return_mask=False, name=None):
def adaptive_max_pool3d(x, output_size, return_mask=False, name=None):
"""
This operation applies a 3D adaptive max pooling on input tensor.
See more details in :ref:`api_nn_pooling_AdaptiveMaxPool3d` .
See more details in :ref:`api_paddle_nn_AdaptiveMaxPool3d` .

Args:
x (Tensor): The input tensor of adaptive max pool3d operator, which is a 5-D tensor. The data type can be float32, float64.
Expand Down