You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2021/12/14 22:41:00 UTC

[tvm] branch main updated: Fix for tvm.build()'s name warning (#9678)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 21abb6e  Fix for tvm.build()'s name warning (#9678)
21abb6e is described below

commit 21abb6ea495425c64476e89127a4e8e416027730
Author: wrongtest <wr...@gmail.com>
AuthorDate: Wed Dec 15 06:40:33 2021 +0800

    Fix for tvm.build()'s name warning (#9678)
    
    * change default name of tvm.build() to None
    
    * change lower name default to None
    
    * fix lint
    
    * lower() use "main" -> "default_function"
    
    * remove default name's warning
---
 python/tvm/driver/build_module.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/python/tvm/driver/build_module.py b/python/tvm/driver/build_module.py
index cc4bd4d..34823eb 100644
--- a/python/tvm/driver/build_module.py
+++ b/python/tvm/driver/build_module.py
@@ -231,8 +231,6 @@ def build(
     elif isinstance(inputs, PrimFunc):
         input_mod = lower(inputs, name=name)
     elif isinstance(inputs, tvm.IRModule):
-        if name is not None:
-            warnings.warn("Specifying name with IRModule input is useless")
         input_mod = lower(inputs)
     elif not isinstance(inputs, (dict, container.Map)):
         raise ValueError(