Skip to content

Commit 9be32cc

Browse files
zwestricktfx-copybara
authored andcommitted
internal
PiperOrigin-RevId: 448317533
1 parent 1cfe943 commit 9be32cc

File tree

3 files changed

+2
-34
lines changed

3 files changed

+2
-34
lines changed

tensorflow_data_validation/api/stats_api_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import pyarrow as pa
2828

2929
from tensorflow_data_validation.api import stats_api
30-
from tensorflow_data_validation.utils import statistics_io_test_util
3130
from tensorflow_data_validation.statistics import stats_options
3231
from tensorflow_data_validation.utils import io_util
3332
from tensorflow_data_validation.utils import stats_util
@@ -699,7 +698,7 @@ def test_write_stats_to_tfrecord_and_binary(self):
699698

700699
output_path_binary = os.path.join(self._get_temp_dir(), 'stats.pb')
701700
output_path_prefix = os.path.join(self._get_temp_dir(), 'stats_shards')
702-
with beam.Pipeline(runner=statistics_io_test_util.test_runner_impl()) as p:
701+
with beam.Pipeline() as p:
703702
_ = (
704703
p | beam.Create([stats1, stats2])
705704
| stats_api.WriteStatisticsToRecordsAndBinaryFile(

tensorflow_data_validation/utils/statistics_io_impl_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from absl.testing import absltest
1818
import apache_beam as beam
1919
from tensorflow_data_validation.utils import statistics_io_impl
20-
from tensorflow_data_validation.utils import statistics_io_test_util
2120
from tensorflow_metadata.proto.v0 import statistics_pb2
2221

2322

@@ -32,7 +31,7 @@ def test_write_and_read_records(self):
3231
]
3332
output_prefix = tempfile.mkdtemp() + '/statistics'
3433

35-
with beam.Pipeline(runner=statistics_io_test_util.test_runner_impl()) as p:
34+
with beam.Pipeline() as p:
3635
provider = statistics_io_impl.get_io_provider('tfrecords')
3736
_ = (p | beam.Create(datasets) | provider.record_sink_impl(output_prefix))
3837

tensorflow_data_validation/utils/statistics_io_test_util.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)