Skip to content

Commit

Permalink
Do not show meta-data when printing IRModule (apache#6881)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored and trevor-m committed Dec 4, 2020
1 parent f2d3f37 commit f216fe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tvm/ir/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ def import_from_std(self, file_to_import):
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()

0 comments on commit f216fe2

Please sign in to comment.