Skip to content

Commit e715761

Browse files
Googlercopybara-github
authored andcommitted
Fix type mismatch in total step time calculation.
PiperOrigin-RevId: 610755921
1 parent 2ad4df0 commit e715761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ml_goodput_measurement/src/goodput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def _get_total_productive_training_time(self, entries: list[Any]) -> float:
296296
job_end_time = None
297297
for payload in entries:
298298
if _STEP_START_TIME in payload:
299-
curr_step = payload[_STEP_COUNT]
299+
curr_step = int(payload[_STEP_COUNT])
300300
step_start_data[curr_step] = payload[_STEP_START_TIME]
301301
for step in range(curr_step + 1, curr_last_step + 1):
302302
if step in step_start_data:

0 commit comments

Comments
 (0)