tensorflow / profiler

A profiling and performance analysis tool for TensorFlow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

step time breakdown question

nbcsm opened this issue · comments

In tensorboard, per step time breakdown is displayed.
image

If I understand correctly, core TF side runs a profiler to capture all kinds of events, e.g. kernel starts/ends, memory H2D, D2H etc.
But given an event, how TF knows which step this event belongs to? Or how TF knows when a step begins/ends?
Tried to dig into TF profiler code, but didn't find a clue...

any comments please?
thanks.

commented

thanks for the information, @ckluk.

could you help to point out where I can find the "step-tracking" logic please?
really appreciate.