mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-01 01:33:10 +00:00
[NFC] polish colossalai/pipeline/utils.py code style (#1562)
This commit is contained in:
parent
e070ca45c6
commit
f566c9b98d
@ -250,6 +250,7 @@ def call_module(module, args=None, kwargs=None):
|
|||||||
else:
|
else:
|
||||||
return module(*args_needed, **kwargs)
|
return module(*args_needed, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def customized_partition(exec_seq):
|
def customized_partition(exec_seq):
|
||||||
'''
|
'''
|
||||||
This function will analyze the exec_seq. In the exec_seq, users will use 'SPLIT_NODE' as an
|
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
|
stop += 1
|
||||||
customized_parts[rank] = [(start, stop)]
|
customized_parts[rank] = [(start, stop)]
|
||||||
return customized_parts
|
return customized_parts
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user