From 51f8d7403eef3d7bfd55e52d161c69d14be7338b Mon Sep 17 00:00:00 2001 From: Yanzhan Yang Date: Thu, 1 Aug 2019 01:44:33 +0800 Subject: [PATCH] fix auto test failure in case that input is too large (#1777) --- test/net/test_net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/net/test_net.cpp b/test/net/test_net.cpp index dba2edc730..36301b544f 100644 --- a/test/net/test_net.cpp +++ b/test/net/test_net.cpp @@ -102,7 +102,7 @@ void test(int argc, char *argv[]) { << " load-time-cost :" << time_diff(time1, time2) << "ms" << std::endl; - float input_data_array[size]; + float *input_data_array = new float[size]; std::ifstream in("input.txt", std::ios::in); for (int i = 0; i < size; i++) { float num; -- GitLab