Skip to content

Commit

Permalink
chore: remove deprecated apis from __init__.py::__all__
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 639967562
  • Loading branch information
TensorFlow Hub Authors authored and copybara-github committed Jun 4, 2024
1 parent c8f8c40 commit d40ad40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions examples/image_retraining/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
WARNING: This code is deprecated.

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

The Colab notebook
[tf2_image_retraining.ipynb](https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/hub/tutorials/tf2_image_retraining.ipynb)
[tf2_image_retraining.ipynb](https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/tf2_image_retraining.ipynb)
explains the basic technique behind that tool: transfer learning with TF Hub.
17 changes: 0 additions & 17 deletions tensorflow_hub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,8 @@ def _ensure_keras_2_importable():
# objects (__all__ defines which symbols you get with
# `from tensorflow_hub import *`).
__all__ = [
"LatestModuleExporter",
"register_module_for_export",
"image_embedding_column",
"sparse_text_embedding_column",
"text_embedding_column",
"text_embedding_column_v2",
"attach_image_module_info",
"get_expected_image_size",
"get_num_image_channels",
"ImageModuleInfo",
"KerasLayer",
"Module",
"ModuleSpec",
"add_signature",
"attach_message",
"create_module_spec",
"create_module_spec_from_saved_model",
"load",
"load_module_spec",
"resolve",
]

Expand Down

0 comments on commit d40ad40

Please sign in to comment.