jcf94 commented on a change in pull request #7156:
URL: https://github.com/apache/tvm/pull/7156#discussion_r548517233



##########
File path: src/auto_scheduler/measure_record.cc
##########
@@ -182,6 +184,10 @@ struct Handler<::tvm::auto_scheduler::SearchTaskNode> {
     reader->Read(&str_value);
     data->target = ::tvm::Target(str_value);
     s = reader->NextArrayItem();
+    ICHECK(s);
+    reader->Read(&int_value);
+    data->layout_rewrite_option = 
::tvm::auto_scheduler::LayoutRewriteOption(int_value);
+    s = reader->NextArrayItem();

Review comment:
       The problem seems not only about the compatability.
   The code above:
   
https://github.com/apache/tvm/blob/0b2ab56705a1c26aef402d1c0d48a887fc76dbd3/src/auto_scheduler/measure_record.cc#L166-L168
   allows different log format even when the log version is all v0.4.




----------------------------------------------------------------
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]


Reply via email to