Skip to content

Commit

Permalink
[luci-interpreter] Reorder variable (#14456)
Browse files Browse the repository at this point in the history
This commit reorders the variables to remove "-Wno-reorder" workaround.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Dec 16, 2024
1 parent c40a382 commit be08f9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/luci-interpreter/src/core/RuntimeGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class RuntimeGraph
void execute() const;

private:
IMemoryManager *_memory_manager;
RuntimeModule *_owning_module;
IMemoryManager *_memory_manager;
std::vector<std::unique_ptr<Tensor>> _tensors;
std::vector<Tensor *> _input_tensors;
std::vector<Tensor *> _output_tensors;
Expand Down
3 changes: 2 additions & 1 deletion compiler/luci-interpreter/src/loader/GraphLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ class GraphLoader
const loco::Graph *_graph;
RuntimeGraph *_runtime_graph;
RuntimeToIR &_runtime_to_ir;
IMemoryManager *_memory_manager;

const std::unordered_map<const loco::Graph *, RuntimeGraph *> &_graph_to_runtime_graph;
std::unordered_map<const loco::Node *, Tensor *> &_node_to_tensor;

IMemoryManager *_memory_manager;
};

} // namespace luci_interpreter
Expand Down
2 changes: 1 addition & 1 deletion compiler/luci-interpreter/src/loader/ModuleLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class ModuleLoader
void load();

private:
IMemoryManager *_memory_manager;
const luci::Module *_module;
RuntimeModule *_runtime_module;
RuntimeToIR &_runtime_to_ir;
std::unordered_map<const loco::Node *, Tensor *> &_node_to_tensor;
std::unordered_map<const loco::Graph *, RuntimeGraph *> _graph_to_runtime_graph;
IMemoryManager *_memory_manager;
};

} // namespace luci_interpreter
Expand Down

0 comments on commit be08f9e

Please sign in to comment.