mirror of https://github.com/hpcaitech/ColossalAI
[NFC] polish runtime_preparation_pass style (#4266)
parent
3883db452c
commit
fee553288b
|
@ -55,7 +55,7 @@ def size_processing(size: Union[int, torch.Size],
|
||||||
|
|
||||||
|
|
||||||
def solution_annotation_pass(gm: torch.fx.GraphModule, solution: List[int],
|
def solution_annotation_pass(gm: torch.fx.GraphModule, solution: List[int],
|
||||||
strategies_constructor: StrategiesConstructor):
|
strategies_constructor: StrategiesConstructor):
|
||||||
"""
|
"""
|
||||||
This method is used to stick the solution strategy to the nodes and add the information
|
This method is used to stick the solution strategy to the nodes and add the information
|
||||||
required in runtime into graph as placeholder nodes.
|
required in runtime into graph as placeholder nodes.
|
||||||
|
|
Loading…
Reference in New Issue