Skip to content

Commit 71081a8

Browse files
authored
Fix IRModule initialization with attrs (#16202)
fix ir module initialization
1 parent 37329bf commit 71081a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

python/tvm/ir/module.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def __init__(self, functions=None, type_definitions=None, attrs=None):
6363

6464
attrs = None if not attrs else attrs
6565
if attrs is not None:
66-
attrs = ast.literal_eval(str(attrs))
6766
attrs = tvm.ir.make_node("DictAttrs", **attrs)
6867
self.__init_handle_by_constructor__(
6968
_ffi_api.IRModule,

0 commit comments

Comments
 (0)