diff --git a/src/operators/math/gru_compute.cpp b/src/operators/math/gru_compute.cpp index 9e77f572c53bc2ba9be57f5edbd2b4bf85f5305e..bbf1b01a21a980293f3cfe255885e7127aeb208e 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 }