From d40ad40ac45dc7692a872284a9957ddf0ed0021e Mon Sep 17 00:00:00 2001 From: TensorFlow Hub Authors Date: Mon, 3 Jun 2024 17:41:28 -0700 Subject: [PATCH] chore: remove deprecated apis from __init__.py::__all__ PiperOrigin-RevId: 639967562 --- examples/image_retraining/README.md | 4 ++-- tensorflow_hub/__init__.py | 17 ----------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/examples/image_retraining/README.md b/examples/image_retraining/README.md index 14f54ddc0..b25027e84 100644 --- a/examples/image_retraining/README.md +++ b/examples/image_retraining/README.md @@ -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. diff --git a/tensorflow_hub/__init__.py b/tensorflow_hub/__init__.py index 13b028066..1bccbe294 100644 --- a/tensorflow_hub/__init__.py +++ b/tensorflow_hub/__init__.py @@ -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", ]