Skip to content

Commit

Permalink
[TESTING] Enable execution of test_packed_8x8x32_resnet50 (apache#13799)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
abhikran-quic authored and fzi-peccia committed Mar 27, 2023
1 parent f570a8c commit 25d278b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/meta_schedule/database/database_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 25d278b

Please sign in to comment.