未验证 提交 08635993 编写于 作者: L liuwei1031 提交者: GitHub

Fix the uninitialized gru_value.output_value. (#17197)

test=develop
上级 2ff7ea33
......@@ -144,7 +144,7 @@ class GRUGradKernel : public framework::OpKernel<T> {
Tensor hidden_prev_grad_t = batch_hidden_grad.Slice(bstart_pre, bstart);
gru_grad.prev_out_grad = hidden_prev_grad_t.data<T>();
}
gru_value.output_value = nullptr;
math::GRUUnitGradFunctor<DeviceContext, T>::compute(
dev_ctx, gru_value, gru_grad, frame_size, cur_batch_size, active_node,
active_gate, origin_mode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册