Skip to content

Commit

Permalink
use an empty module for fold_constant (apache#8208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brookhart authored and Trevor Morris committed Jun 17, 2021
1 parent 9724b86 commit 3234333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def infer_type(node, mod=None):

def fold_constant(node, mod=None):
if mod is None:
mod = IRModule.from_expr(node)
mod = IRModule()
return _transform.FoldConstantExpr(node, mod)


Expand Down

0 comments on commit 3234333

Please sign in to comment.