Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hexagon] Fix compilation errors in Hexagon launcher #9189

Merged
merged 1 commit into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/runtime/hexagon/launcher/launcher_core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ tvm::runtime::Module load_module(const std::string& file_name) {
}

tvm::runtime::Module create_graph_executor(const std::string& graph_json,
tvm::runtime::Module graph_module,
tvm::runtime::Device device) {
tvm::runtime::Module graph_module, tvm::Device device) {
std::string launcher_name = "tvm.graph_executor.create";

const tvm::runtime::PackedFunc create_executor = get_runtime_func(launcher_name);
Expand Down
7 changes: 2 additions & 5 deletions src/runtime/hexagon/launcher/launcher_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ struct Model {
tvm::runtime::Module graph_module;
std::string graph_json;

static tvm::runtime::Device device() {
return tvm::runtime::Device{static_cast<DLDeviceType>(kDLHexagon), 0};
}
static tvm::Device device() { return tvm::Device{static_cast<DLDeviceType>(kDLHexagon), 0}; }

tvm::runtime::PackedFunc run;
};
Expand Down Expand Up @@ -126,7 +124,6 @@ const tvm::runtime::PackedFunc get_module_func(tvm::runtime::Module module,
const std::string& name);

tvm::runtime::Module create_graph_executor(const std::string& graph_json,
tvm::runtime::Module graph_module,
tvm::runtime::Device device);
tvm::runtime::Module graph_module, tvm::Device device);

#endif // TVM_RUNTIME_HEXAGON_LAUNCHER_LAUNCHER_CORE_H_