diff --git a/python/tvm/ir/module.py b/python/tvm/ir/module.py index 232c70aa93d8..0486fcccc7ee 100644 --- a/python/tvm/ir/module.py +++ b/python/tvm/ir/module.py @@ -63,7 +63,6 @@ def __init__(self, functions=None, type_definitions=None, attrs=None): 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,