Skip to content

Commit

Permalink
Fix IRModule initialization with attrs (apache#16202)
Browse files Browse the repository at this point in the history
fix ir module initialization
  • Loading branch information
jinhongyii authored Dec 5, 2023
1 parent 37329bf commit 71081a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/tvm/ir/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71081a8

Please sign in to comment.