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
12c95a9f
Unverified
Commit
12c95a9f
authored
Aug 30, 2023
by
Lufang Chen
Committed by
GitHub
Aug 30, 2023
Browse files
fix runtime prepare pass (#4502)
Co-authored-by:
lufang.chen
<
lufang.chen@nio.com
>
parent
0b00def8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/auto_parallel/passes/runtime_preparation_pass.py
colossalai/auto_parallel/passes/runtime_preparation_pass.py
+1
-1
No files found.
colossalai/auto_parallel/passes/runtime_preparation_pass.py
View file @
12c95a9f
...
@@ -144,7 +144,7 @@ def size_value_converting_pass(gm: torch.fx.GraphModule, device_mesh: DeviceMesh
...
@@ -144,7 +144,7 @@ def size_value_converting_pass(gm: torch.fx.GraphModule, device_mesh: DeviceMesh
# DeviceMesh information instructs the scaling of the size value
# DeviceMesh information instructs the scaling of the size value
device_mesh_info
=
{}
device_mesh_info
=
{}
for
dim
,
dim_size
in
enumerate
(
device_mesh
.
mesh_
shape
):
for
dim
,
dim_size
in
enumerate
(
device_mesh
.
shape
):
device_mesh_info
[
dim
]
=
dim_size
device_mesh_info
[
dim
]
=
dim_size
def
_extract_target_dim
(
node
):
def
_extract_target_dim
(
node
):
...
...
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