Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
9eae8554
".github/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "05b8a8de58da5f6a7853b17488cc5b7713d06f38"
Unverified
Commit
9eae8554
authored
Sep 23, 2022
by
YuliangLiu0306
Committed by
GitHub
Sep 23, 2022
Browse files
[hotfix] add recompile after graph manipulatation (#1621)
parent
d967779a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_auto_parallel/test_shape_consistency_pass.py
tests/test_auto_parallel/test_shape_consistency_pass.py
+1
-0
No files found.
tests/test_auto_parallel/test_shape_consistency_pass.py
View file @
9eae8554
...
@@ -65,6 +65,7 @@ def check_apply(rank, world_size, port):
...
@@ -65,6 +65,7 @@ def check_apply(rank, world_size, port):
solution
=
list
(
ret
[
0
])
solution
=
list
(
ret
[
0
])
sharding_spec_dict
,
origin_spec_dict
=
solution_annotatation_pass
(
gm
,
solution
,
device_mesh
)
sharding_spec_dict
,
origin_spec_dict
=
solution_annotatation_pass
(
gm
,
solution
,
device_mesh
)
shape_consistency_pass
(
gm
)
shape_consistency_pass
(
gm
)
gm
.
recompile
()
nodes
=
[
node
for
node
in
gm
.
graph
.
nodes
]
nodes
=
[
node
for
node
in
gm
.
graph
.
nodes
]
# TODO: wrap the gm to avoid the influence of the user training code
# TODO: wrap the gm to avoid the influence of the user training code
output
=
gm
(
input
,
sharding_spec_dict
,
origin_spec_dict
)
output
=
gm
(
input
,
sharding_spec_dict
,
origin_spec_dict
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment