masahi commented on code in PR #13050:
URL: https://github.com/apache/tvm/pull/13050#discussion_r992884312
##########
src/meta_schedule/database/database.cc:
##########
@@ -25,8 +26,8 @@ namespace meta_schedule {
Workload::Workload(IRModule mod) {
ObjectPtr<WorkloadNode> n = runtime::make_object<WorkloadNode>();
- n->shash = tvm::StructuralHash()(mod);
n->mod = mod;
+ n->shash = ModuleEquality::Create("structural")->Hash(mod);
Review Comment:
Since this constructor is not used anywhere, I'm hard coding the instance
here to avoid passing the `mod_eq_name` string. I want to remove this
constructor if there is no objection.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]