From 7f94081f509a2f9116a1b87984920cabdef67382 Mon Sep 17 00:00:00 2001 From: JewelRoam <2752594773@qq.com> Date: Tue, 20 Jan 2026 21:48:48 +0800 Subject: [PATCH] fix test_multi_models_with_prefix --- graph_net_bench/torch/test_compiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graph_net_bench/torch/test_compiler.py b/graph_net_bench/torch/test_compiler.py index 4406d8053..8ee670fd2 100755 --- a/graph_net_bench/torch/test_compiler.py +++ b/graph_net_bench/torch/test_compiler.py @@ -448,9 +448,10 @@ def test_multi_models_with_prefix(args): args.allow_list, get_sample_root(args) ) py_module_name = os.path.splitext(os.path.basename(__file__))[0] - for rel_model_path in test_samples: - model_path = os.path.join(args.model_path_prefix, rel_model_path) + for model_path in test_samples: if not os.path.exists(model_path): + print(f"{os.path.exists(model_path)=}") + print(f"{args.model_path_prefix=}") continue if not os.path.exists(os.path.join(model_path, "model.py")): continue