This is an automated email from the ASF dual-hosted git repository.
tqchen 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 71081a8616 Fix IRModule initialization with attrs (#16202)
71081a8616 is described below
commit 71081a8616be106bcb274077ab014ee67b88e91c
Author: Hongyi Jin <[email protected]>
AuthorDate: Tue Dec 5 16:21:43 2023 -0500
Fix IRModule initialization with attrs (#16202)
fix ir module initialization
---
python/tvm/ir/module.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/python/tvm/ir/module.py b/python/tvm/ir/module.py
index 232c70aa93..0486fcccc7 100644
--- a/python/tvm/ir/module.py
+++ b/python/tvm/ir/module.py
@@ -63,7 +63,6 @@ class IRModule(Node, Scriptable):
attrs = None if not attrs else attrs
if attrs is not None:
- attrs = ast.literal_eval(str(attrs))
attrs = tvm.ir.make_node("DictAttrs", **attrs)
self.__init_handle_by_constructor__(
_ffi_api.IRModule,