Skip to content

Commit cb5a520

Browse files
Googlercopybara-github
authored andcommitted
Feat(tpu-info): Add support for buffer_transfer_latency metric.
PiperOrigin-RevId: 786195872
1 parent 568d9f9 commit cb5a520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpu_info/tpu_info/cli_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def get_metric_table(
146146
metric_functions = {
147147
"hbm_usage": lambda: get_hbm_usage_table(chip_type, count),
148148
"duty_cycle_percent": lambda: get_duty_cycle_table(chip_type, count),
149+
"buffer_transfer_latency": lambda: [BufferTransferLatencyTable().render()],
149150
}
150151
renderables.extend(metric_functions[metric_name]())
151152
return renderables
@@ -224,7 +225,6 @@ def get_duty_cycle_table(
224225
renderables.append(table)
225226
return renderables
226227

227-
228228
def get_device_usage(
229229
chip_type: device.TpuChip,
230230
) -> List[metrics.Usage] | panel.Panel:

0 commit comments

Comments
 (0)