From ca3c0309599f99fca09802fbbd4ca8faeb64b207 Mon Sep 17 00:00:00 2001 From: ZhenWang Date: Mon, 3 Dec 2018 16:53:05 +0800 Subject: [PATCH] fix some bugs. --- src/operators/math/gru_compute.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operators/math/gru_compute.cpp b/src/operators/math/gru_compute.cpp index 9e77f572c5..bbf1b01a21 100644 --- a/src/operators/math/gru_compute.cpp +++ b/src/operators/math/gru_compute.cpp @@ -34,12 +34,12 @@ struct GRUUnitFunctor { gemm.Sgemm_omp(batch_size, frame_size * 2, frame_size, 1, value.prev_out_value, frame_size, value.gate_weight, frame_size * 2, 1, value.gate_value, frame_size * 3, false, - nullptr); + static_cast(nullptr)); #else gemm.Sgemm(batch_size, frame_size * 2, frame_size, 1, value.prev_out_value, frame_size, value.gate_weight, frame_size * 2, 1, value.gate_value, frame_size * 3, false, - nullptr); + static_cast(nullptr)); #endif } @@ -51,12 +51,12 @@ struct GRUUnitFunctor { gemm.Sgemm_omp(batch_size, frame_size, frame_size, 1, value.reset_output_value, frame_size, value.state_weight, frame_size, 1, value.gate_value + frame_size * 2, - frame_size * 3, false, nullptr); + frame_size * 3, false, static_cast(nullptr)); #else gemm.Sgemm(batch_size, frame_size, frame_size, 1, value.reset_output_value, frame_size, value.state_weight, frame_size, 1, value.gate_value + frame_size * 2, - frame_size * 3, false, nullptr); + frame_size * 3, false, static_cast(nullptr)); #endif } -- GitLab