Skip to content

Commit d40ad40

Browse files
TensorFlow Hub Authorscopybara-github
authored andcommitted
chore: remove deprecated apis from __init__.py::__all__
PiperOrigin-RevId: 639967562
1 parent c8f8c40 commit d40ad40

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
WARNING: This code is deprecated.
22

33
The `retrain.py` tool from this directory has been replaced by the
4-
[`make_image_classifier`](https://www.tensorflow.org/hub/tutorials/tf2_image_retraining)
4+
[`make_image_classifier`](https://github.com/tensorflow/hub/tree/master/tensorflow_hub/tools/make_image_classifier)
55
tool that gets
66
[installed](https://www.tensorflow.org/hub/installation) as a command-line tool
77
by the PIP package `tensorflow-hub[make_image_classifier]`.
88
The new tool uses TensorFlow 2 and supports fine-tuning.
99

1010
The Colab notebook
11-
[tf2_image_retraining.ipynb](https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/hub/tutorials/tf2_image_retraining.ipynb)
11+
[tf2_image_retraining.ipynb](https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/tf2_image_retraining.ipynb)
1212
explains the basic technique behind that tool: transfer learning with TF Hub.

tensorflow_hub/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,25 +129,8 @@ def _ensure_keras_2_importable():
129129
# objects (__all__ defines which symbols you get with
130130
# `from tensorflow_hub import *`).
131131
__all__ = [
132-
"LatestModuleExporter",
133-
"register_module_for_export",
134-
"image_embedding_column",
135-
"sparse_text_embedding_column",
136-
"text_embedding_column",
137-
"text_embedding_column_v2",
138-
"attach_image_module_info",
139-
"get_expected_image_size",
140-
"get_num_image_channels",
141-
"ImageModuleInfo",
142132
"KerasLayer",
143-
"Module",
144-
"ModuleSpec",
145-
"add_signature",
146-
"attach_message",
147-
"create_module_spec",
148-
"create_module_spec_from_saved_model",
149133
"load",
150-
"load_module_spec",
151134
"resolve",
152135
]
153136

0 commit comments

Comments
 (0)