This is an automated email from the ASF dual-hosted git repository.
masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 8f738d001b [TESTING] Enable execution of test_packed_8x8x32_resnet50
(#13799)
8f738d001b is described below
commit 8f738d001bf3ec952ee46d7b7c979657255af68b
Author: Abhikrant Sharma <[email protected]>
AuthorDate: Fri Jan 20 16:13:47 2023 +0530
[TESTING] Enable execution of test_packed_8x8x32_resnet50 (#13799)
* [TESTING] Enable execution of test_packed_8x8x32_resnet50
Resnet 50 is passing now. Need to add below mentioned changes as well for
test to pass.
- Add condition for IndexMap
- Add empty dict while calling tune_conv2d_template to avoid failure
* Fix unused variable error
* Remove unused variable and change check in if condition
---
src/meta_schedule/database/database_utils.cc | 2 ++
.../python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/meta_schedule/database/database_utils.cc
b/src/meta_schedule/database/database_utils.cc
index 9e563c39d4..1754b304c9 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<tir::IndexMapNode>()) {
+ // 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 1e01cb28a7..d985d21209 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):