Skip to content

Commit dbdb829

Browse files
Grain Teamcopybara-github
authored andcommitted
fix last_seen_indices dtype
PiperOrigin-RevId: 877639205
1 parent 0d302a4 commit dbdb829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grain/_src/python/data_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_state(self):
273273

274274
local_offset = shard_index - global_worker_count
275275
last_seen_indices = {
276-
str(i): (
276+
str(i): int(
277277
local_offset
278278
+ i * shard_count
279279
+ workers_state[i]["next_index"] * global_worker_count

0 commit comments

Comments
 (0)