From 086359932371d85042051280d9a0e7bca677658d Mon Sep 17 00:00:00 2001 From: liuwei1031 <46661762+liuwei1031@users.noreply.github.com> Date: Tue, 14 May 2019 10:57:18 +0800 Subject: [PATCH] Fix the uninitialized gru_value.output_value. (#17197) test=develop --- paddle/fluid/operators/gru_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/gru_op.h b/paddle/fluid/operators/gru_op.h index 45c769ee3..bcca992e2 100644 --- a/paddle/fluid/operators/gru_op.h +++ b/paddle/fluid/operators/gru_op.h @@ -144,7 +144,7 @@ class GRUGradKernel : public framework::OpKernel { Tensor hidden_prev_grad_t = batch_hidden_grad.Slice(bstart_pre, bstart); gru_grad.prev_out_grad = hidden_prev_grad_t.data(); } - + gru_value.output_value = nullptr; math::GRUUnitGradFunctor::compute( dev_ctx, gru_value, gru_grad, frame_size, cur_batch_size, active_node, active_gate, origin_mode); -- GitLab