ut_helper.h 1.1 KB
Newer Older
1 2
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.

Y
Yan Chunwei 已提交
3 4 5
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
6

Y
Yan Chunwei 已提交
7
http://www.apache.org/licenses/LICENSE-2.0
8

Y
Yan Chunwei 已提交
9 10 11 12 13
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. */
14 15 16 17

#pragma once
#include <gflags/gflags.h>
#include <gtest/gtest.h>
Y
Yan Chunwei 已提交
18
#include <fstream>
19
#include <string>
20
#include "paddle/fluid/framework/executor.h"
Y
Yan Chunwei 已提交
21
#include "paddle/fluid/inference/analysis/helper.h"
22 23 24

namespace paddle {
namespace inference {
Y
Yan Chunwei 已提交
25 26 27 28

// Read ProgramDesc from a __model__ file, defined in io.cc
extern void ReadBinaryFile(const std::string& filename, std::string* contents);

29 30 31 32 33 34 35
namespace analysis {

DEFINE_string(inference_model_dir, "", "inference test model dir");

}  // namespace analysis
}  // namespace inference
}  // namespace paddle