From bc6033f86bcae6c26465cefd3b3ed4f15c1156cc Mon Sep 17 00:00:00 2001 From: Jack Zhou Date: Mon, 30 Nov 2020 10:32:42 +0800 Subject: [PATCH] fix gru gcc7.4 bug for the gru compile fix gru gcc7.4 bug for the gru compile --- paddle/fluid/operators/math/gru_compute.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/math/gru_compute.cc b/paddle/fluid/operators/math/gru_compute.cc index 34dd06040d3..ddd3d4cf67b 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 } }; -- GitLab