File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 2222import tensorflow .compat .v2 as tf
2323import tensorflow_transform as tft
2424import tensorflow_transform .beam as tft_beam
25- from tensorflow_transform .tf_metadata import dataset_metadata
2625from tfx_bsl .public .tfxio import RecordBatchToExamplesEncoder
2726from tfx_bsl .public import tfxio
2827
6463 [(LABEL_KEY ,
6564 tf .io .FixedLenFeature ([], tf .string ))])
6665
67- _SCHEMA = dataset_metadata .DatasetMetadata .from_feature_spec (
68- RAW_DATA_FEATURE_SPEC ).schema
66+ _SCHEMA = tft .DatasetMetadata .from_feature_spec (RAW_DATA_FEATURE_SPEC ).schema
6967
7068# Constants used for training. Note that the number of instances will be
7169# computed by tf.Transform in future versions, in which case it can be read from
Original file line number Diff line number Diff line change 2424from tensorflow import estimator as tf_estimator
2525import tensorflow_transform as tft
2626import tensorflow_transform .beam as tft_beam
27- from tensorflow_transform .tf_metadata import dataset_metadata
2827from tfx_bsl .public import tfxio
2928
3029
4342 LABEL_KEY : tf .io .FixedLenFeature ([], tf .int64 )
4443}
4544
46- SCHEMA = dataset_metadata .DatasetMetadata .from_feature_spec (
47- RAW_DATA_FEATURE_SPEC ).schema
45+ SCHEMA = tft .DatasetMetadata .from_feature_spec (RAW_DATA_FEATURE_SPEC ).schema
4846
4947DELIMITERS = '.,!?() '
5048
You can’t perform that action at this time.
0 commit comments