You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/08 07:38:52 UTC

[GitHub] [tvm] FrozenGene commented on a change in pull request #7975: Remove warning which is adding too much noise

FrozenGene commented on a change in pull request #7975:
URL: https://github.com/apache/tvm/pull/7975#discussion_r628716451



##########
File path: python/tvm/relay/backend/compile_engine.py
##########
@@ -253,7 +255,16 @@ def select_implementation(op, attrs, inputs, out_type, target, use_autotvm=True)
             and msg not in autotvm.task.DispatchContext.warning_messages
         ):
             autotvm.task.DispatchContext.warning_messages.add(msg)
-            autotvm_logger.warning(msg)
+            global _first_warning
+            if _first_warning:
+                _first_warning = False
+                info_msg = (
+                    "One or more operators have not been tuned. Please tune your model "
+                    "for better performance. Use DEBUG logging level to see more details."

Review comment:
       Let us add more detail how to turn on DEBUG logging level like 
   ```python
   import logging
   logging.getLogger('autotvm').setLevel(logging.DEBUG)
   ```




-- 
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:
users@infra.apache.org