Skip to content

Commit

Permalink
[onert] Clean up header include in nnfw_api_internal (#14403)
Browse files Browse the repository at this point in the history
This commit cleans up header includes in nnfw_api_internal.h/cc.
- Reorder includes
- Remove class/struct declaration in nnfw_api_internal.h
  - Use header include because it is not public header

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Dec 3, 2024
1 parent bf07c9c commit 8b1af60
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 49 deletions.
26 changes: 11 additions & 15 deletions runtime/onert/api/nnfw/src/nnfw_api_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,30 @@
*/

#include "nnfw_api_internal.h"
#include "CustomKernelRegistry.h"

#include "compiler/CompilerFactory.h"
#include "util/ConfigSource.h"
#include "util/Exceptions.h"
#include "util/logging.h"
#include "exec/Execution.h"
#include "exporter/CircleExporter.h"
#include "exporter/train/CheckpointExporter.h"
#include "ir/OpCode.h"
#include "json/json.h"
#include "loader/CircleLoader.h"
#include "loader/ModelLoader.h"
#include "loader/TFLiteLoader.h"
#include "loader/TrainInfoLoader.h"
#include "loader/train/CheckpointLoader.h"
#include "exporter/CircleExporter.h"
#include "exporter/train/CheckpointExporter.h"
#include "json/json.h"
#include "ir/NNPkg.h"
#include "ir/OpCode.h"
#include "ir/train/TrainingInfo.h"
#include "util/ConfigSource.h"
#include "util/Exceptions.h"
#include "util/logging.h"
#include "util/TracingCtx.h"
#include "odc/QuantizeManager.h"
#include "odc/CodegenManager.h"

#include <misc/string_helpers.h>

#include <dirent.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <dirent.h>
#include <misc/string_helpers.h>

/*
* API does not accept string argument longer than max length below
Expand Down
44 changes: 10 additions & 34 deletions runtime/onert/api/nnfw/src/nnfw_api_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,22 @@
#include "nnfw.h"
#include "nnfw_experimental.h"

#include "CustomKernelRegistry.h"
#include "compiler/CompilerOptions.h"
#include "compiler/ICompiler.h"
#include "exec/Execution.h"
#include "ir/NNPkg.h"
#include "ir/train/TrainingInfo.h"
#include "odc/CodegenManager.h"
#include "odc/QuantizeManager.h"

#include <util/TracingCtx.h>

#include <string>
#include <memory>
#include <string>
#include <thread>
#include <vector>

namespace onert
{
namespace api
{
class CustomKernelRegistry;
} // namespace api
namespace exec
{
class Execution;
struct ExecutionOptions;
} // namespace exec
namespace ir
{
struct IGraph;
class Model;
class NNPkg;
namespace train
{
class TrainingInfo;
}
} // namespace ir
namespace compiler
{
struct CompilerArtifact;
struct CompilerOptions;
} // namespace compiler
namespace odc
{
class QuantizeManager;
class CodegenManager;
} // namespace odc
} // namespace onert

struct nnfw_session
{
private:
Expand Down

0 comments on commit 8b1af60

Please sign in to comment.