From 31cd1065e718c2d82c3b486e5fd652c6f7d3ff54 Mon Sep 17 00:00:00 2001 From: Guoxia Wang Date: Sun, 29 Aug 2021 16:27:29 +0800 Subject: [PATCH] test=document_fix (#35221) --- python/paddle/nn/functional/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/nn/functional/common.py b/python/paddle/nn/functional/common.py index 4ead5f49d40..0f0094b6dc3 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 -- GitLab