You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Alan Nair via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/11/21 08:55:12 UTC

[Apache TVM Discuss] [Questions] Time Reported by the Virtual Machine Profiler


Are the times reported by `tvm.runtime.profiler_vm.VirtualMachineProfiler`'s `profile()` function the actual  times observed on running inference on the target device?





---
[Visit Topic](https://discuss.tvm.apache.org/t/time-reported-by-the-virtual-machine-profiler/11522/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/f2efbd6c8d50209cd34bfe2b644ca6641449b62dc04bb5ce9a67bf67891b3530).

[Apache TVM Discuss] [Questions] Time Reported by the Virtual Machine Profiler

Posted by Tristan Konolige via Apache TVM Discuss <no...@discuss.tvm.ai>.

I'm not really sure what you mean by "actual times". The per op times reported by the profiler are the time it takes to run the op along with the time it takes to start and stop the timer. The overall times ate the end are the time from the start of the model execution to the end, including the time it takes to run profilers for all the ops and collect the shape information. Note that these timers are device specific. i.e. the GPU timer only times how long the op takes to execute on the GPU and not the time it takes to synchronize with the host.





---
[Visit Topic](https://discuss.tvm.apache.org/t/time-reported-by-the-virtual-machine-profiler/11522/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/529d868c5723a1754413dbe0b94ff2ade659a8b4439eb589be25bc4979847ad2).