mbs-octoml commented on a change in pull request #9483:
URL: https://github.com/apache/tvm/pull/9483#discussion_r759579604
##########
File path: src/relay/backend/graph_executor_codegen.cc
##########
@@ -215,24 +215,35 @@ class GraphExecutorCodegen : public
backend::MemoizedExprTranslator<std::vector<
if (memory_plan_.defined()) {
// TODO(@electriclilies, @jroesch): remove UpdateMainWorkspaceSize
- func_info =
- relay::tec::UpdateMainWorkspaceSize(mod, targets_,
memory_plan_->expr_to_storage_info);
+ tec::TargetMap tec_target_map;
+ for (const auto& pair : targets_) {
+ tec_target_map.emplace(static_cast<DLDeviceType>(pair.first->value),
pair.second);
+ }
Review comment:
No, it's just a representation mismatch between Map<Integer,...> and
unordered_map<DLDeviceType, ...>.
--
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]