From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 5 Aug 2019 04:16:54 +0000 (+0900) Subject: Format check hpp extension (#6187) X-Git-Tag: submit/tizen/20190809.050447~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f2b818b11d3a6fac6eaf9439ba97ff958bc52d2;p=platform%2Fcore%2Fml%2Fnnfw.git Format check hpp extension (#6187) Add format check extension: hpp file Fix format: nnfw_api.hpp Signed-off-by: Hyeongseok Oh --- diff --git a/infra/command/format b/infra/command/format index 5fb5e90..eea0a38 100644 --- a/infra/command/format +++ b/infra/command/format @@ -84,7 +84,7 @@ function check_cpp_files() { fi # File extension to check - if [[ ${f} == +(*.h|*.cpp|*.cc|*.c|*.cl) ]]; then + if [[ ${f} == +(*.h|*.hpp|*.cpp|*.cc|*.c|*.cl) ]]; then FILES_TO_CHECK_CPP+=("${f}") fi done diff --git a/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp b/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp index cbef178..8d31ad2 100644 --- a/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp +++ b/runtimes/neurun/frontend/api/wrapper/nnfw_api.hpp @@ -22,24 +22,21 @@ #include "exec/Execution.h" #include "graph/Graph.h" - -struct nnfw_session { +struct nnfw_session +{ public: nnfw_session(); - NNFW_STATUS load_model_from_file(const char* package_file_path); + NNFW_STATUS load_model_from_file(const char *package_file_path); NNFW_STATUS prepare(); NNFW_STATUS run(); - NNFW_STATUS set_input(int index,NNFW_TYPE type, const void *buffer, - size_t length); - NNFW_STATUS set_output(int index,NNFW_TYPE type, void *buffer, - size_t length); + NNFW_STATUS set_input(int index, NNFW_TYPE type, const void *buffer, size_t length); + NNFW_STATUS set_output(int index, NNFW_TYPE type, void *buffer, size_t length); private: std::shared_ptr _graph; std::shared_ptr _execution; }; - -#endif //__API_NNFW_INTERNAL_HPP__ +#endif // __API_NNFW_INTERNAL_HPP__