zxybazh commented on a change in pull request #7534:
URL: https://github.com/apache/tvm/pull/7534#discussion_r597212646
##########
File path: src/auto_scheduler/measure_record.cc
##########
@@ -163,8 +163,10 @@ struct Handler<::tvm::auto_scheduler::SearchTaskNode> {
writer->WriteArrayItem(std::string(data.workload_key));
writer->WriteArrayItem(data.target->str());
writer->WriteArrayItem(*data.hardware_params.get());
- if (data.target_host.defined()) {
- writer->WriteArrayItem(data.target_host->str());
+ ::tvm::Target target = data.target, target_host = data.target_host;
Review comment:
Sure I can split into two lines. In this file specifically, the name
space tvm is not used. The prefix is aloso used in other statements as well.
Therefore, I'll keep it here for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]