未验证 提交 0e9a48c7 编写于 作者: V Vegetable dog 提交者: GitHub

文档修复 (#51419)

* update rnn.py

* update common.py

* update rnn.py

* update common.py

* fix CI
上级 939b58b2
...@@ -1996,7 +1996,7 @@ def class_center_sample(label, num_classes, num_samples, group=None): ...@@ -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 For more information, Partial FC: Training 10 Million Identities on a Single Machine
arxiv: https://arxiv.org/abs/2010.05222 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 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]. class centers and the shape of sampled_class_center will be [num_positive_class_centers].
......
...@@ -1164,7 +1164,7 @@ class RNN(Layer): ...@@ -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. - **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: 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 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 passed to the `forward` method, make sure that it satisfies the
requirements of the cell. requirements of the cell.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册