From 58d6946c874bbe539ace4fde05e7fb4693f30ca1 Mon Sep 17 00:00:00 2001 From: yangyaming Date: Tue, 19 Dec 2017 11:03:20 +0800 Subject: [PATCH] Set the act to 'linear'. --- python/paddle/v2/fluid/layers/nn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/v2/fluid/layers/nn.py b/python/paddle/v2/fluid/layers/nn.py index 1c101c62c2d..ab443826bd7 100644 --- a/python/paddle/v2/fluid/layers/nn.py +++ b/python/paddle/v2/fluid/layers/nn.py @@ -891,6 +891,7 @@ def lstm_unit(x_t, size=4 * size, param_attr=param_attr, bias_attr=bias_attr, + act='linear', main_program=main_program, startup_program=startup_program) dtype = x_t.dtype -- GitLab