CircleSpin commented on a change in pull request #7792:
URL: https://github.com/apache/tvm/pull/7792#discussion_r608118918



##########
File path: python/tvm/driver/tvmc/autotuner.py
##########
@@ -286,17 +290,18 @@ def drive_tune(args):
         )
 
     if args.enable_autoscheduler:
-        # Specify hardware parameters
-        hardware_params = auto_scheduler.HardwareParams(
-            args.num_cores,
-            args.vector_unit_bytes,
-            args.cache_line_bytes,
-            args.max_shared_memory_per_block,
-            args.max_local_memory_per_block,
-            args.max_threads_per_block,
-            args.max_vthread_extent,
-            args.warp_size,
-        )
+        if args.enable_hardware_params:
+            # Specify hardware parameters
+            hardware_params = auto_scheduler.HardwareParams(

Review comment:
       When not specified, the default hardware params should be None. I 
mistakenly didn't include this earlier.




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