(strategy, hcg_name="HybridCommunicateGroup")
| 118 | |
| 119 | |
| 120 | def create_hcg(strategy, hcg_name="HybridCommunicateGroup"): |
| 121 | if hcg_name == "HybridCommunicateGroup": |
| 122 | fleet.init(is_collective=True, strategy=strategy) |
| 123 | hcg = fleet.get_hybrid_communicate_group() |
| 124 | else: |
| 125 | dist.init_parallel_env() |
| 126 | hcg = eval("{}".format(hcg_name))(strategy) |
| 127 | |
| 128 | return hcg |
| 129 | |
| 130 | |
| 131 | def init_dist_env( |
no test coverage detected
searching dependent graphs…