test_load.cpp 1.4 KB
Newer Older
L
liuruilong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
L
liuruilong 已提交
14

L
liuruilong 已提交
15
#include <string>
L
liuruilong 已提交
16
#include <iostream>
L
liuruilong 已提交
17

L
liuruilong 已提交
18
#include "../test_helper.h"
19
#include "framework/loader.h"
L
liuruilong 已提交
20 21

int main() {
L
liuruilong 已提交
22
  paddle_mobile::framework::Loader<paddle_mobile::GPU_CL> loader;
23 24
  //  ../../../test/models/googlenet
  //  ../../../test/models/mobilenet
L
liuruilong 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37

  std::cout << " Begin load mobilenet " << std::endl;

  auto program = loader.Load(std::string(g_mobilenet_mul), true);

  std::cout << " End load mobilenet " << std::endl;

  std::cout << " Begin load YOLO " << std::endl;

  auto program1 = loader.Load(std::string(g_yolo_mul), true);

  std::cout << " End load YOLO " << std::endl;

L
liuruilong 已提交
38
  //  auto program = loader.Load(g_mobilenet_ssd, true);
39

L
liuruilong 已提交
40 41
//  auto program = loader.Load(std::string(g_ocr) + "/model",
//                             std::string(g_ocr) + "/params", false);
L
liuruilong 已提交
42
  //  program.originProgram->Description("program desc: ");
L
liuruilong 已提交
43

44
  return 0;
45
}