From 5f6213217be6e83f02a6b3cf0e3f18177c4eede7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Mon, 8 Mar 2021 20:51:16 +0800 Subject: [PATCH] update zero_copy_tensor_test.cc for build of gcc485, test=develop (#31470) --- paddle/fluid/inference/api/details/zero_copy_tensor_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/api/details/zero_copy_tensor_test.cc b/paddle/fluid/inference/api/details/zero_copy_tensor_test.cc index 42f9259c525..7e709924e91 100644 --- a/paddle/fluid/inference/api/details/zero_copy_tensor_test.cc +++ b/paddle/fluid/inference/api/details/zero_copy_tensor_test.cc @@ -57,7 +57,7 @@ struct RandomGenerator { std::uniform_real_distribution dist_; }; -template typename G> +template class G> bool FillRandomDataAndCheck(PlaceType place, size_t length, G&& generator, float threshold = 10e-5) { std::vector data_in(length); -- GitLab