diff --git a/python/paddle/nn/functional/common.py b/python/paddle/nn/functional/common.py index 4ead5f49d409f5eec99a5c237f0b2ab1c8af6384..0f0094b6dc3c34948536f1f0b445fd8d03bcdf9c 100644 --- a/python/paddle/nn/functional/common.py +++ b/python/paddle/nn/functional/common.py @@ -1620,6 +1620,7 @@ def class_center_sample(label, num_classes, num_samples, group=None, seed=None): Examples: .. code-block:: python + :name: code-example1 # CPU or single GPU import paddle @@ -1642,6 +1643,7 @@ def class_center_sample(label, num_classes, num_samples, group=None, seed=None): # [1 , 2 , 3 , 5 , 11, 12, 15, 18, 19]) .. code-block:: python + :name: code-example2 # required: distributed # Multi GPU, test_class_center_sample.py