mehrdadh commented on a change in pull request #8715:
URL: https://github.com/apache/tvm/pull/8715#discussion_r688659368



##########
File path: python/tvm/autotvm/measure/measure_methods.py
##########
@@ -511,7 +523,13 @@ def __call__(self, measure_input, tmp_dir, **kwargs):
             )
             # TODO(tvm-team) consider linline _build_func_common
             func, arg_info = _build_func_common(measure_input, **kwargs)
-            func.export_library(filename, self.build_func)
+            if self.build_func.output_format == "tar.gz":
+                # Late import to preserve autoTVM with USE_MICRO OFF
+                from tvm import micro  # pylint: 
disable=import-outside-toplevel

Review comment:
       Agree. Fixed it.




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to