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 42f9259c52562d23fbd403f4cca69caea8bf7be1..7e709924e91f93b0fb92a0d555675c117a7a831e 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);