diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 4fd353171a00c2b155d2567408e77a9d0c744b47..b49560a526a9f9f90b087a1f0bfcb25754f79a02 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -2076,6 +2076,7 @@ def beam_search_decode(ids, scores, name=None): Examples: .. code-block:: python + ids, scores = fluid.layers.beam_search( pre_ids, ids, scores, beam_size, end_id) sentence_ids, sentence_scores = fluid.layers.beam_search_decode(