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
f566c9b9
Commit
f566c9b9
authored
Sep 08, 2022
by
Zirui Zhu
Committed by
Frank Lee
Sep 08, 2022
Browse files
[NFC] polish colossalai/pipeline/utils.py code style (#1562)
parent
e070ca45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/pipeline/utils.py
colossalai/pipeline/utils.py
+1
-1
No files found.
colossalai/pipeline/utils.py
View file @
f566c9b9
...
...
@@ -250,6 +250,7 @@ def call_module(module, args=None, kwargs=None):
else
:
return
module
(
*
args_needed
,
**
kwargs
)
def
customized_partition
(
exec_seq
):
'''
This function will analyze the exec_seq. In the exec_seq, users will use 'SPLIT_NODE' as an
...
...
@@ -269,4 +270,3 @@ def customized_partition(exec_seq):
stop
+=
1
customized_parts
[
rank
]
=
[(
start
,
stop
)]
return
customized_parts
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