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
cbe34c55
"git@developer.sourcefind.cn:OpenDAS/tilelang.git" did not exist on "b14f201ef5d5db28accd001dccbaf799253a2741"
Unverified
Commit
cbe34c55
authored
Mar 26, 2024
by
Rocky Duan
Committed by
GitHub
Mar 26, 2024
Browse files
Fix ColoTensorSpec for py11 (#5440)
parent
a7790a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
colossalai/legacy/tensor/tensor_spec.py
colossalai/legacy/tensor/tensor_spec.py
+2
-2
No files found.
colossalai/legacy/tensor/tensor_spec.py
View file @
cbe34c55
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
,
field
from
typing
import
Optional
from
typing
import
Optional
from
colossalai.legacy.tensor.distspec
import
DistPlacementPattern
,
_DistSpec
from
colossalai.legacy.tensor.distspec
import
DistPlacementPattern
,
_DistSpec
...
@@ -17,5 +17,5 @@ class ColoTensorSpec:
...
@@ -17,5 +17,5 @@ class ColoTensorSpec:
"""
"""
pg
:
ProcessGroup
pg
:
ProcessGroup
dist_attr
:
Optional
[
_DistSpec
]
=
_DistSpec
(
DistPlacementPattern
.
REPLICATE
)
dist_attr
:
Optional
[
_DistSpec
]
=
field
(
default_factory
=
lambda
:
_DistSpec
(
DistPlacementPattern
.
REPLICATE
)
)
compute_attr
:
Optional
[
ComputeSpec
]
=
None
compute_attr
:
Optional
[
ComputeSpec
]
=
None
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