You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by lm...@apache.org on 2020/11/08 16:55:28 UTC

[incubator-tvm] branch main updated: Do not show meta-data when printing IRModule (#6881)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 589f9f2  Do not show meta-data when printing IRModule (#6881)
589f9f2 is described below

commit 589f9f2c233f8a8cc63ee52ef51bd25314e4287f
Author: Lianmin Zheng <li...@gmail.com>
AuthorDate: Sun Nov 8 08:55:14 2020 -0800

    Do not show meta-data when printing IRModule (#6881)
---
 python/tvm/ir/module.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/python/tvm/ir/module.py b/python/tvm/ir/module.py
index 352f8aa..f8b6ff2 100644
--- a/python/tvm/ir/module.py
+++ b/python/tvm/ir/module.py
@@ -251,8 +251,7 @@ class IRModule(Node):
         return tvm.relay.transform.InferType()(self)
 
     def __str__(self):
-        # TODO(jroesch): why does this hang sometimes?
-        return self.astext()
+        return _ffi_api.PrettyPrint(self)
 
     def __repr__(self):
         return self.astext()