From ecab0f3c7f17a1b93de8cc96ab02feb57b79e923 Mon Sep 17 00:00:00 2001 From: xiebaiyuan Date: Thu, 24 Oct 2019 19:41:10 +0800 Subject: [PATCH] fix is_lod params ,test=develop (#2258) --- mobile/test/net/test_net.cpp | 3 ++- mobile/test/net/test_net_performance.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/test/net/test_net.cpp b/mobile/test/net/test_net.cpp index 0251d774dd..3d5386513b 100644 --- a/mobile/test/net/test_net.cpp +++ b/mobile/test/net/test_net.cpp @@ -102,7 +102,8 @@ void test(int argc, char *argv[]) { auto time1 = time(); if (paddle_mobile.Load("./checked_model/model", "./checked_model/params", - fuse, quantification, 1, true, quantification_fold)) { + fuse, quantification, 1, is_lod, + quantification_fold)) { auto time2 = time(); std::cout << "auto-test" << " load-time-cost :" << time_diff(time1, time2) << "ms" diff --git a/mobile/test/net/test_net_performance.cpp b/mobile/test/net/test_net_performance.cpp index d16164757e..678558d602 100644 --- a/mobile/test/net/test_net_performance.cpp +++ b/mobile/test/net/test_net_performance.cpp @@ -108,7 +108,8 @@ void test(int argc, char *argv[]) { auto time1 = time(); if (paddle_mobile.Load("./checked_model/model", "./checked_model/params", - fuse, quantification, 1, true, quantification_fold)) { + fuse, quantification, 1, is_lod, + quantification_fold)) { auto time2 = time(); std::cout << "auto-test" << " load-time-cost :" << time_diff(time1, time2) << "ms" -- GitLab