From 74da01191e52b14b45e31c00aaf45637ed1abc5a Mon Sep 17 00:00:00 2001 From: xuezhong Date: Wed, 30 Jan 2019 12:38:48 +0000 Subject: [PATCH] refine code --- python/paddle/fluid/tests/unittests/test_lstmp_op.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_lstmp_op.py b/python/paddle/fluid/tests/unittests/test_lstmp_op.py index 299a8c9695b..0645cfedb80 100644 --- a/python/paddle/fluid/tests/unittests/test_lstmp_op.py +++ b/python/paddle/fluid/tests/unittests/test_lstmp_op.py @@ -64,7 +64,6 @@ def lstmp( new_a[i] = max(new_a[i], -1.0 * clip) new_a[i] = min(new_a[i], clip) new_a = np.reshape(new_a, a.shape) - #print('new' + str(new_a)) return new_a if cell_clip > 0.0: @@ -103,9 +102,7 @@ def lstmp( # compute one sequence seq_len = lod[0][i] x = input[offset[i]:offset[i + 1], :] - #r_pre = np.dot(h0[i], w_rh) # 1 x P r_pre = h0[i] - #r_pre = act_proj(r_pre) c_pre = c0[i] # 1 x D for j in range(seq_len): # compute one step -- GitLab