From 393fa6021e78d111d9a76e52fbdd97c4e152e65d Mon Sep 17 00:00:00 2001 From: liuhongyu Date: Thu, 14 Feb 2019 16:25:29 +0800 Subject: [PATCH] set lstm lstmp unsed pointer to nullptr; test=develop --- paddle/fluid/operators/lstm_op.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/lstm_op.h b/paddle/fluid/operators/lstm_op.h index 289f50f52e..3f110024b2 100644 --- a/paddle/fluid/operators/lstm_op.h +++ b/paddle/fluid/operators/lstm_op.h @@ -311,8 +311,8 @@ class LSTMGradKernel : public framework::OpKernel { lstm_grad.prev_state_grad = c0_g ? ordered_c0_g.data() : nullptr; } - // lstm_value.output_value not used in bp, set to null - // lstm_grad.state_active_grad not used in bp, set to null + // lstm_value.output_value not used in bp, set to nullptr + // lstm_grad.state_active_grad not used in bp, set to nullptr lstm_value.output_value = nullptr; lstm_grad.state_active_grad = nullptr; int cur_batch_size = bend - bstart; -- GitLab