Skip to content

Commit

Permalink
[hotfix] add recompile after graph manipulatation (#1621)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliangLiu0306 committed Sep 23, 2022
1 parent d967779 commit 9eae855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_auto_parallel/test_shape_consistency_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def check_apply(rank, world_size, port):
solution = list(ret[0])
sharding_spec_dict, origin_spec_dict = solution_annotatation_pass(gm, solution, device_mesh)
shape_consistency_pass(gm)
gm.recompile()
nodes = [node for node in gm.graph.nodes]
# TODO: wrap the gm to avoid the influence of the user training code
output = gm(input, sharding_spec_dict, origin_spec_dict)
Expand Down

0 comments on commit 9eae855

Please sign in to comment.