Skip to content

Commit

Permalink
address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
huajsj committed Dec 16, 2021
1 parent 29c5cad commit ca2c23e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/runtime/pipeline/pipeline_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ void PipelineExecutor::Init(const std::vector<Module>& modules, const std::strin
// Use JSONReader to load pipeline configuration.
std::istringstream is(pipeline_json);
dmlc::JSONReader reader(&is);
ConfigPipelineExecution& pipeline_config = this->LoadConfig(&reader);
ICHECK(!pipeline_config.Empty()) << "The pipeline config information is empty.";
this->LoadConfig(&reader);
ICHECK(!pipeline_config_.Empty()) << "The pipeline config information is empty.";
// Initialize the pipeline function class used for pipeline thread pool management
// and schedule etc. This function returns the number of output.
num_outputs_ = pipeline_scheduler_.PipelineInit(modules, pipeline_config);
num_outputs_ = pipeline_scheduler_.PipelineInit(modules, pipeline_config_);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/runtime/pipeline/pipeline_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class TVM_DLL PipelineExecutor : public ModuleNode {
/*!\brief How many outputs are in this pipeline executor.*/
size_t num_outputs_ = 0;
/*!\brief Json loader.*/
ConfigPipelineExecution& LoadConfig(dmlc::JSONReader* reader) {
void LoadConfig(dmlc::JSONReader* reader) {
reader->BeginObject();
std::string key;
while (reader->NextObjectItem(&key)) {
Expand All @@ -143,7 +143,7 @@ class TVM_DLL PipelineExecutor : public ModuleNode {
LOG(FATAL) << "do not support key " << key;
}
}
return pipeline_config_;
return;
}
};
} // namespace runtime
Expand Down

0 comments on commit ca2c23e

Please sign in to comment.