From 5dcff7c89b5bd98640130b16cd49f33710288c4e Mon Sep 17 00:00:00 2001 From: Guoxia Wang Date: Fri, 27 Aug 2021 21:38:34 +0800 Subject: [PATCH] test=document_fix (#35222) --- python/paddle/nn/functional/loss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/nn/functional/loss.py b/python/paddle/nn/functional/loss.py index 3f12fb759d..4d5d3e400a 100755 --- a/python/paddle/nn/functional/loss.py +++ b/python/paddle/nn/functional/loss.py @@ -1147,6 +1147,7 @@ def margin_cross_entropy(logits, Examples: .. code-block:: python + :name: code-example1 # required: gpu # Single GPU @@ -1195,6 +1196,7 @@ def margin_cross_entropy(logits, # [0.99992995, 0.00006468, 0.00000000, 0.00000537]]) .. code-block:: python + :name: code-example2 # required: distributed # Multi GPU, test_margin_cross_entropy.py -- GitLab