Skip to content

Commit 5b4cb61

Browse files
runzwThe TensorFlow Datasets Authors
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 927193180
1 parent 18a830d commit 5b4cb61

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

tensorflow_datasets/core/dataset_info_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from unittest import mock
2424

2525
from etils import epath
26+
from google.protobuf import text_format
2627
import numpy as np
2728
import pytest
2829
import tensorflow as tf
@@ -40,8 +41,6 @@
4041
from tensorflow_datasets.image_classification import mnist
4142
from tensorflow_datasets.testing.dummy_config_based_datasets.dummy_ds_1 import dummy_ds_1_dataset_builder
4243

43-
from google.protobuf import text_format
44-
4544

4645
_TFDS_DIR = utils.tfds_path()
4746
_DATA_DIR = os.path.join(_TFDS_DIR, "testing", "test_data", "dataset_info")

tensorflow_datasets/core/features/feature.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
from absl import logging
3131
from etils import enp
3232
from etils import epath
33+
from google.protobuf import descriptor
34+
from google.protobuf import json_format
35+
from google.protobuf import message
3336
import numpy as np
3437
from tensorflow_datasets.core import constants
3538
from tensorflow_datasets.core import utils
@@ -44,10 +47,6 @@
4447
from tensorflow_datasets.core.utils.lazy_imports_utils import tf_agents
4548
from tensorflow_datasets.core.utils.lazy_imports_utils import tree
4649

47-
from google.protobuf import descriptor
48-
from google.protobuf import json_format
49-
from google.protobuf import message
50-
5150
Json = type_utils.Json
5251
Shape = type_utils.Shape
5352
TreeDict = type_utils.TreeDict

tensorflow_datasets/core/folder_dataset/compute_split_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
from etils import epath
2828
from etils import etree
29+
from google.protobuf import json_format
2930
from tensorflow_datasets.core import file_adapters
3031
from tensorflow_datasets.core import lazy_imports_lib
3132
from tensorflow_datasets.core import naming
@@ -34,8 +35,6 @@
3435
from tensorflow_datasets.core.utils.lazy_imports_utils import apache_beam as beam
3536
from tensorflow_datasets.core.utils.lazy_imports_utils import array_record_data_source
3637

37-
from google.protobuf import json_format
38-
3938
_SplitFilesDict = Mapping[str, Sequence[naming.FilenameInfo]]
4039

4140

tensorflow_datasets/core/read_only_builder_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import dill
2525
from etils import epath
26+
from google.protobuf import json_format
2627
import pytest
2728
import tensorflow as tf
2829
from tensorflow_datasets import testing
@@ -40,7 +41,6 @@
4041
from tensorflow_datasets.core.proto import dataset_info_pb2
4142
from tensorflow_datasets.core.utils import error_utils
4243
from tensorflow_datasets.core.utils import file_utils
43-
from google.protobuf import json_format
4444

4545
_DATA_DIR = epath.Path('path/to')
4646
_BUILDER_NAME = 'ds0'

0 commit comments

Comments
 (0)