File tree Expand file tree Collapse file tree 3 files changed +2
-34
lines changed
tensorflow_data_validation Expand file tree Collapse file tree 3 files changed +2
-34
lines changed Original file line number Diff line number Diff line change 2727import pyarrow as pa
2828
2929from tensorflow_data_validation .api import stats_api
30- from tensorflow_data_validation .utils import statistics_io_test_util
3130from tensorflow_data_validation .statistics import stats_options
3231from tensorflow_data_validation .utils import io_util
3332from 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 (
Original file line number Diff line number Diff line change 1717from absl .testing import absltest
1818import apache_beam as beam
1919from tensorflow_data_validation .utils import statistics_io_impl
20- from tensorflow_data_validation .utils import statistics_io_test_util
2120from 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments