tkonolige commented on a change in pull request #7472:
URL: https://github.com/apache/tvm/pull/7472#discussion_r583023884
##########
File path: src/runtime/vm/profiler/vm.cc
##########
@@ -45,7 +45,15 @@ PackedFunc VirtualMachineDebug::GetFunction(const
std::string& name,
return PackedFunc([sptr_to_self, this](TVMArgs args, TVMRetValue* rv) {
ICHECK_EQ(args.size(), 1U);
std::vector<std::pair<Index, double>> op_acc_time;
+ std::unordered_map<Index, std::vector<double>> op_durations;
for (auto kv : op_durations_) {
+ std::vector<double> durations;
+ for (auto t : kv.second) {
+ durations.push_back(t.SyncAndGetTime() / 1e3);
Review comment:
`1e3` is double so this will always be a double.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]