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
634eecb9
"vscode:/vscode.git/clone" did not exist on "9edeadfb24bd769b33d500e05784d63bf1a8e5fd"
Unverified
Commit
634eecb9
authored
Jun 23, 2022
by
ver217
Committed by
GitHub
Jun 23, 2022
Browse files
mark sanity_check of dist_spec_mgr as staticmethod (#1161)
parent
955ac912
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/tensor/dist_spec_mgr.py
colossalai/tensor/dist_spec_mgr.py
+1
-0
No files found.
colossalai/tensor/dist_spec_mgr.py
View file @
634eecb9
...
@@ -43,6 +43,7 @@ class DistSpecManager:
...
@@ -43,6 +43,7 @@ class DistSpecManager:
_use_autograd_function
:
bool
=
True
_use_autograd_function
:
bool
=
True
@
staticmethod
def
_sanity_check
(
old_dist_spec
:
_DistSpec
,
dist_spec
:
_DistSpec
)
->
None
:
def
_sanity_check
(
old_dist_spec
:
_DistSpec
,
dist_spec
:
_DistSpec
)
->
None
:
if
old_dist_spec
.
process_group
is
not
None
and
old_dist_spec
.
process_group
!=
dist_spec
.
process_group
\
if
old_dist_spec
.
process_group
is
not
None
and
old_dist_spec
.
process_group
!=
dist_spec
.
process_group
\
and
dist_spec
.
process_group
is
not
None
:
and
dist_spec
.
process_group
is
not
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