From 0e9a48c7a65b6255d79fda3f69faa09327694622 Mon Sep 17 00:00:00 2001 From: Vegetable dog <103268123+zzh-sonny@users.noreply.github.com> Date: Thu, 16 Mar 2023 10:56:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=BF=AE=E5=A4=8D=20(#51419)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update rnn.py * update common.py * update rnn.py * update common.py * fix CI --- python/paddle/nn/functional/common.py | 2 +- python/paddle/nn/layer/rnn.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/nn/functional/common.py b/python/paddle/nn/functional/common.py index 6204a4fdbb8..f18a7749791 100644 --- a/python/paddle/nn/functional/common.py +++ b/python/paddle/nn/functional/common.py @@ -1996,7 +1996,7 @@ def class_center_sample(label, num_classes, num_samples, group=None): For more information, Partial FC: Training 10 Million Identities on a Single Machine arxiv: https://arxiv.org/abs/2010.05222 - .. hint:: + Note: If the number of the positive class centers is greater than the input num_samples, it keeps all the positive class centers and the shape of sampled_class_center will be [num_positive_class_centers]. diff --git a/python/paddle/nn/layer/rnn.py b/python/paddle/nn/layer/rnn.py index 61e731c045a..dbdb83ba5a7 100644 --- a/python/paddle/nn/layer/rnn.py +++ b/python/paddle/nn/layer/rnn.py @@ -1164,7 +1164,7 @@ class RNN(Layer): - **final_states** (Tensor|list|tuple): final states of the cell. Tensor or a possibly nested structure of tensors which has the same structure with intial state. Each tensor in final states has the same shape and dtype as the corresponding tensor in initial states. Notes: - This class is a low level API for wrapping rnn cell into a RNN network. + This class is a low-level API for wrapping rnn cell into a RNN network. Users should take care of the state of the cell. If `initial_states` is passed to the `forward` method, make sure that it satisfies the requirements of the cell. -- GitLab