diff --git a/paddle/fluid/operators/math/gru_compute.cc b/paddle/fluid/operators/math/gru_compute.cc index 34dd06040d3b20a7ea31f4340b4b2ce3394a4c31..ddd3d4cf67be4a4967d7ef88daef8c4d92359559 100644 --- a/paddle/fluid/operators/math/gru_compute.cc +++ b/paddle/fluid/operators/math/gru_compute.cc @@ -43,7 +43,7 @@ struct GRUUnitFunctor { detail::forward_reset_output(detail::forward::gru_resetOutput(), value, frame_size, batch_size, active_gate, true, - &context); + nullptr); if (value.prev_out_value) { blas.GEMM(false, false, batch_size, frame_size, frame_size, 1, @@ -54,7 +54,7 @@ struct GRUUnitFunctor { detail::forward_final_output(detail::forward::gru_finalOutput(), value, frame_size, batch_size, active_node, - origin_mode, &context); + origin_mode, true, nullptr); #endif } };