TensorFlow Profiler中两项百分比数值的含义咨询
Hey there! Let me break down those two percentage values you’re seeing in your TensorFlow Profiler results clearly:
First Percentage: This represents the proportion of time the specific operation/step takes relative to the total time of your entire training/inference step. For example, if this number is 15%, it means this operation uses up 15% of the total time it takes to run one full iteration of your model. This helps you quickly spot which ops are eating up the most time across your entire pipeline.
Second Percentage: This is the proportion of time the operation takes relative to the total time of its parent operation/group (like a specific stage, function, or subgraph it’s nested under). For instance, if this number is 40%, it means within its parent group, this operation accounts for 40% of that group’s total runtime. This is super useful for drilling down into bottlenecks within specific sections of your model, rather than looking at the big picture.
To put it simply: the first percentage gives you a global view of the op’s impact, while the second lets you zoom into how it performs within its immediate context.
内容的提问来源于stack exchange,提问作者Yulong Ao

