Skip to content

Commit e8970a5

Browse files
Grain Teamcopybara-github
authored andcommitted
Internal
PiperOrigin-RevId: 832363601
1 parent 575c8b8 commit e8970a5

File tree

7 files changed

+920
-0
lines changed

7 files changed

+920
-0
lines changed

grain/_src/python/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ py_library(
335335
srcs = ["shared_memory_array.py"],
336336
srcs_version = "PY3",
337337
deps = [
338+
"//grain/_src/core:tree_lib",
338339
"@pypi//numpy:pkg",
339340
],
340341
)

grain/_src/python/dataset/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ py_library(
5656
"//grain/_src/python:options",
5757
"//grain/_src/python:shared_memory_array",
5858
"//grain/proto:execution_summary_py_pb2",
59+
"@abseil-py//absl/flags",
5960
"@abseil-py//absl/logging",
6061
"@pypi//cloudpickle:pkg",
6162
"@pypi//etils:pkg",

grain/_src/python/dataset/transformations/BUILD

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ filegroup(
1414
"map.py",
1515
"mix.py",
1616
"prefetch.py",
17+
"process_prefetch.py",
1718
"rebatch.py",
1819
"repeat.py",
1920
"shuffle.py",
@@ -352,3 +353,21 @@ py_test(
352353
"@pypi//numpy:pkg",
353354
],
354355
)
356+
357+
py_test(
358+
name = "process_prefetch_test",
359+
timeout = "long",
360+
srcs = ["process_prefetch_test.py"],
361+
shard_count = 50,
362+
srcs_version = "PY3",
363+
deps = [
364+
"//grain/_src/core:transforms",
365+
"//grain/_src/python:options",
366+
"//grain/_src/python/dataset",
367+
"//grain/_src/python/dataset:base",
368+
"@abseil-py//absl/logging",
369+
"@abseil-py//absl/testing:absltest",
370+
"@abseil-py//absl/testing:parameterized",
371+
"@pypi//numpy:pkg",
372+
],
373+
)

0 commit comments

Comments
 (0)