From bd8e81bbdf87b56ccd5ac006888f8d62f6882197 Mon Sep 17 00:00:00 2001 From: wangliu Date: Wed, 6 Jun 2018 12:11:20 +0800 Subject: [PATCH] modify code style --- src/io/io.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/io/io.h b/src/io/io.h index 13a6761b81..f155c971c7 100644 --- a/src/io/io.h +++ b/src/io/io.h @@ -14,8 +14,8 @@ limitations under the License. */ #pragma once -#include #include +#include #include #include @@ -27,21 +27,21 @@ limitations under the License. */ namespace paddle_mobile { -template +template class Loader { - public: +public: const framework::Program Load(const std::string &dirname, bool optimize = false); - private: +private: void LoadVar(framework::Variable *variable, const framework::VarDesc &var_desc, const std::string &file_path); }; -template +template class Executor { - public: +public: typedef typename PrecisionTrait

::ptype Ptype; Executor(const framework::Program p, int batch_size = 1, @@ -52,7 +52,7 @@ class Executor { std::vector Predict(const std::vector &input, const std::vector &dims); - protected: +protected: Executor() = default; void InitMemory(); @@ -64,9 +64,9 @@ class Executor { std::shared_ptr Predict(const framework::Tensor &t, int block_id); std::map>>> - ops_of_block_; + std::vector>>> + ops_of_block_; bool use_optimize_ = false; }; -} // namespace paddle_mobile +} // namespace paddle_mobile \ No newline at end of file -- GitLab