junrushao1994 commented on code in PR #11157:
URL: https://github.com/apache/tvm/pull/11157#discussion_r861403407


##########
python/tvm/meta_schedule/utils.py:
##########
@@ -368,3 +372,30 @@ def autotvm_silencer():
         yield
     finally:
         autotvm.GLOBAL_SCOPE.silent = silent
+
+
+def make_logging_func(logger: logging.Logger):

Review Comment:
   ```suggestion
   def make_logging_func(logger: logging.Logger) -> Optional[Callable]:
   ```



##########
python/tvm/meta_schedule/utils.py:
##########
@@ -368,3 +372,30 @@ def autotvm_silencer():
         yield
     finally:
         autotvm.GLOBAL_SCOPE.silent = silent
+
+
+def make_logging_func(logger: logging.Logger):
+    """Get the logging function.
+    Parameters
+    ----------
+    logger : logging.Logger
+        The logger instance.
+    Returns
+    -------
+    result : Callable

Review Comment:
   ```suggestion
       result : Optional[Callable]
   ```



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