From 2ea8c886d93ca2093c5d672cc1aec60aef962754 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Mon, 23 Oct 2023 13:06:47 +0200 Subject: [PATCH] [Tests] Fix work_dir location used by test_micro_tuning_with_meta_schedule, NFC Converting `work_dir = tvm.contrib.utils.tempdir()` to `str` yields `"/"` which creates a so-called file in the current working directory. This change uses `str(work_dir.path)` instead, resulting in the expected behavior. --- tests/python/unittest/test_micro_ms_tuning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/unittest/test_micro_ms_tuning.py b/tests/python/unittest/test_micro_ms_tuning.py index edb27396e324..f55f3219ccd5 100644 --- a/tests/python/unittest/test_micro_ms_tuning.py +++ b/tests/python/unittest/test_micro_ms_tuning.py @@ -66,7 +66,7 @@ def test_micro_tuning_with_meta_schedule(): num_trials_per_iter=2, max_trials_per_task=10, max_trials_global=100, - work_dir=str(work_dir), + work_dir=str(work_dir.path), module_equality="ignore-ndarray", )