From 32c95f175243f78d167dd091ae246063082e5e0a Mon Sep 17 00:00:00 2001 From: zhaoyuchen2018 <45989343+zhaoyuchen2018@users.noreply.github.com> Date: Fri, 21 Jun 2019 18:03:35 +0800 Subject: [PATCH] Add StaticRNN.output code example (#18251) refine StaticRNN api doc test=develop test=document_preview --- python/paddle/fluid/layers/control_flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index b13c4870664..f011b758d6d 100644 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -307,6 +307,7 @@ class StaticRNN(object): hidden = fluid.layers.fc(input=[word, prev], size=hidden_size, act='relu') rnn.update_memory(prev, hidden) # set prev to hidden rnn.step_output(hidden) + rnn.output(word) result = rnn() -- GitLab