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

Enable python debug runtime for exported network libraries #8793

Merged
merged 7 commits into from
Sep 2, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix cpplint
  • Loading branch information
elvin-n committed Aug 29, 2021
commit 472684dc2fe7d93a04229e91c0fefd13b818479d
5 changes: 2 additions & 3 deletions src/runtime/graph_executor/graph_executor_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ PackedFunc GraphExecutorFactory::GetFunction(
*rv = this->ExecutorCreate(devices);
});
} else if (name == "get_json") {
return PackedFunc([sptr_to_self, this](TVMArgs args, TVMRetValue* rv) {
*rv = this->graph_json_;
});
return PackedFunc(
[sptr_to_self, this](TVMArgs args, TVMRetValue* rv) { *rv = this->graph_json_; });
} else if (name == "debug_create") {
return PackedFunc([sptr_to_self, this](TVMArgs args, TVMRetValue* rv) {
ICHECK_GE(args.size(), 2);
Expand Down