Skip to content

Commit

Permalink
Fix P90 math for hlo op profile
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 569350204
  • Loading branch information
zzzaries authored and copybara-github committed Sep 29, 2023
1 parent 1219c5d commit e79eb6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ export class OpTableEntry implements OnChanges {
}

let tot = 0;
const target90 = utils.timeFraction(this.node, this.rootNode) * 0.9;
const targetP90NodeRawTimePs = this.node.metrics.rawTime * 0.9;
const targetCount = Math.min(this.childrenCount, this.node.children.length);
for (let i = 0; i < targetCount; i++) {
if (tot >= target90) {
if (tot >= targetP90NodeRawTimePs) {
return i;
}
const child = this.node.children[i];
Expand Down

0 comments on commit e79eb6a

Please sign in to comment.