File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 31
31
import tempfile
32
32
import tensorflow .compat .v1 as tf
33
33
from tensorflow .compat .v1 import estimator as tf_estimator
34
- import tensorflow_hub as hub
34
+ from tensorflow . python . feature_column import feature_column_v2 # pylint: disable=g-deprecated-tf-checker
35
35
import tensorflow_model_analysis as tfma
36
36
from tensorflow_model_analysis .addons .fairness .post_export_metrics import fairness_indicators # pylint: disable=unused-import
37
37
@@ -71,7 +71,7 @@ def parse_function(serialized):
71
71
filenames = [train_tf_file ]).map (parse_function ).batch (512 )
72
72
return train_dataset
73
73
74
- text_embedding_column = hub .text_embedding_column (
74
+ text_embedding_column = feature_column_v2 .text_embedding_column (
75
75
key = text_feature , module_spec = module_spec )
76
76
77
77
classifier = tf_estimator .DNNClassifier (
You can’t perform that action at this time.
0 commit comments