Skip to content

Commit 696f169

Browse files
committed
Fix the config saving of test_target_device.
1 parent bd84a36 commit 696f169

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graph_net/subgraph_decompose_and_evaluation_step.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,19 @@ def main(args):
447447
) = execute_decomposition_phase(
448448
max_subgraph_size, tasks_map, args.framework, pass_work_dir
449449
)
450+
else:
451+
config = load_decompose_config(pass_work_dir)
452+
max_subgraph_size = config["max_subgraph_size"]
453+
failed_decomposition = config["failed_decomposition_models"]
454+
active_models_map = config.get("active_models_map", {})
455+
split_positions_map = config.get("split_positions_map", {})
456+
for model_name in split_positions_map.keys():
457+
tasks_map[model_name] = {
458+
"subgraph_path": None,
459+
"original_path": active_models_map[model_name],
460+
"subgraph_size": None,
461+
"split_positions": split_positions_map[model_name],
462+
}
450463

451464
# --- Step 4: Testing ---
452465
pass_log_path = os.path.join(pass_work_dir, "batch_test_result.log")

0 commit comments

Comments
 (0)