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
#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<neurun::graph::Graph> _graph;
std::shared_ptr<neurun::exec::Execution> _execution;
};
-
-#endif //__API_NNFW_INTERNAL_HPP__
+#endif // __API_NNFW_INTERNAL_HPP__