diff --git a/src/meta_schedule/database/database_utils.cc b/src/meta_schedule/database/database_utils.cc index 9e563c39d408..1754b304c904 100644 --- a/src/meta_schedule/database/database_utils.cc +++ b/src/meta_schedule/database/database_utils.cc @@ -77,6 +77,8 @@ void JSONDumps(ObjectRef json_obj, std::ostringstream& os) { JSONDumps(kv.second, os); } os << "}"; + } else if (json_obj->IsInstance()) { + // Do nothing for index maps to start } else { LOG(FATAL) << "TypeError: Unsupported type in JSON object: " << json_obj->GetTypeKey(); } diff --git a/tests/python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py b/tests/python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py index 1e01cb28a749..d985d2120936 100644 --- a/tests/python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py +++ b/tests/python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py @@ -410,7 +410,7 @@ def test_packed_8x8x32_resnet50(hexagon_launcher): if do_tune: hexagon_lowered = tune_conv2d_template( - mod, _schedule_packed_8x8x32_conv2d, "packed_8x8x32", params, hexagon_launcher + mod, _schedule_packed_8x8x32_conv2d, "packed_8x8x32", params, hexagon_launcher, {} ) else: with tvm.transform.PassContext(opt_level=3):