File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
tensorflow_transform/beam/tft_beam_io Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 16
16
from tensorflow_transform .beam .tft_beam_io .beam_metadata_io import WriteMetadata
17
17
from tensorflow_transform .beam .tft_beam_io .transform_fn_io import ReadTransformFn
18
18
from tensorflow_transform .beam .tft_beam_io .transform_fn_io import WriteTransformFn
19
- # TF 2.6 split support for filesystems such as Amazon S3 out to the
20
- # `tensorflow_io` package. Hence, this import is needed wherever we touch the
21
- # filesystem.
22
- try :
23
- import tensorflow_io as _ # pytype: disable=import-error # pylint: disable=g-import-not-at-top
24
- except ModuleNotFoundError :
25
- pass
Original file line number Diff line number Diff line change 15
15
16
16
import os
17
17
18
+ from absl import logging
18
19
import apache_beam as beam
19
20
import tensorflow_transform as tft
20
21
from tensorflow_transform import impl_helper
@@ -99,6 +100,13 @@ def expand(self, transform_fn):
99
100
def publish_outputs (unused_element , metadata_source_path ,
100
101
transform_fn_source_path ):
101
102
import tensorflow as tf # pylint: disable=g-import-not-at-top
103
+ # TF 2.6 split support for filesystems such as Amazon S3 out to the
104
+ # `tensorflow_io` package. Hence, this import is needed wherever we touch
105
+ # the filesystem.
106
+ try :
107
+ import tensorflow_io as _ # pytype: disable=import-error # pylint: disable=g-import-not-at-top
108
+ except ModuleNotFoundError :
109
+ logging .info ('tensorflow_io is not available.' )
102
110
if not tf .io .gfile .exists (self ._path ):
103
111
tf .io .gfile .makedirs (self ._path )
104
112
You can’t perform that action at this time.
0 commit comments