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
a98e16ed
Unverified
Commit
a98e16ed
authored
Jun 08, 2023
by
Frank Lee
Committed by
GitHub
Jun 08, 2023
Browse files
Merge pull request #3926 from hpcaitech/feature/dtensor
[feature] updated device mesh and dtensor
parents
12c90db3
eb39154d
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tensor/test_sharding_spec.py
tests/test_tensor/test_sharding_spec.py
+1
-1
No files found.
tests/test_tensor/test_sharding_spec.py
View file @
a98e16ed
...
...
@@ -5,7 +5,7 @@ from colossalai.tensor.sharding_spec import ShardingSpec, _DimSpec
def
test_sharding_spec
():
physical_mesh_id
=
torch
.
arange
(
0
,
16
)
.
reshape
(
2
,
8
)
physical_mesh_id
=
torch
.
arange
(
0
,
16
)
mesh_shape
=
(
4
,
4
)
# [[0, 1, 2, 3],
# [4, 5, 6, 7],
...
...
Prev
1
2
Next
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