diff --git a/paddle/operators/detail/grpc_client.cc b/paddle/operators/detail/grpc_client.cc index d699dabf2fb982f267c4869180efaf0e600eb46c..90e2b29659b494493487b7a55532d580c2ad7387 100644 --- a/paddle/operators/detail/grpc_client.cc +++ b/paddle/operators/detail/grpc_client.cc @@ -102,7 +102,7 @@ bool RPCClient::Wait() { return true; } - std::vector a(req_count_); + bool a[req_count_]; std::vector> waits(req_count_); for (int i = 0; i < req_count_; i++) {