MCPcopy Index your code
hub / github.com/tensorflow/hub

github.com/tensorflow/hub @v0.16.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.16.1 ↗
475 symbols 1,078 edges 41 files 203 documented · 43%
README

Warning: unmigrated tfhub.dev model artifacts will be deleted on March 18, 2024.

As of November 15th 2023, most tfhub.dev URLs and model handles are now redirecting to their migrated/equivalent counterpart on Kaggle Models.

On March 18, 2024, all unmigrated model assets previously surfaced on tfhub.dev will be deleted – after this date, hub.load and hub.KerasLayer calls to these tfhub.dev handles will fail permanently. See the list of unmigrated model assets here:

If you are an owner of an unmigrated model, please get in touch with us at kaggle-models@google.com if you'd like to migrate your model. If you take no action, your model(s) will be deleted on March 18, 2024 and not retrievable (either by you or other users).

For models with a Kaggle Models copy, there will be no impact on the availability/functionality of models that were copied from tfhub.dev – tensorflow_hub will continue to support downloading models that were initially uploaded to tfhub.dev via e.g. hub.load("https://tfhub.dev/<publisher>/<model>/<version>"). To see if a tfhub.dev model has been migrated, enter the model handle in your URL bar – if the redirect is successful, it has already been migrated, otherwise it is an unmigrated model and will be subject to deletion.

Although no migration or code rewrites are explicitly required, we recommend replacing tfhub.dev links with their Kaggle Models counterparts to improve code health and debuggability.

See FAQs here.

tensorflow_hub

This GitHub repository hosts the tensorflow_hub Python library to download and reuse SavedModels in your TensorFlow program with a minimum amount of code, as well as other associated code and documentation.

Getting Started

Contributing

If you'd like to contribute to TensorFlow Hub, be sure to review the contribution guidelines. To contribute code to the library itself (not examples), you will probably need to build from source.

This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs.

License

Apache License 2.0

Core symbols most depended-on inside this repo

add_graph_copy
called by 9
tensorflow_hub/saved_model_lib.py
add_implementation
called by 9
tensorflow_hub/registry.py
get_config
called by 7
tensorflow_hub/keras_layer.py
from_config
called by 6
tensorflow_hub/feature_column_v2.py
get_shape
called by 6
tensorflow_hub/tensor_info.py
is_supported
called by 5
tensorflow_hub/resolver.py
get_image_path
called by 5
examples/image_retraining/retrain.py
get_meta_graph_copy
called by 4
tensorflow_hub/saved_model_lib.py

Shape

Method 251
Function 160
Class 51
Route 13

Languages

Python100%

Modules by API surface

tensorflow_hub/keras_layer_test.py53 symbols
tensorflow_hub/resolver_test.py38 symbols
tensorflow_hub/resolver.py36 symbols
tensorflow_hub/saved_model_lib.py31 symbols
tensorflow_hub/test_utils.py25 symbols
examples/image_retraining/retrain.py24 symbols
tensorflow_hub/tensor_info.py19 symbols
tensorflow_hub/keras_layer.py18 symbols
tensorflow_hub/feature_column_v2.py16 symbols
tensorflow_hub/saved_model_lib_test.py15 symbols
tensorflow_hub/compressed_module_resolver_test.py14 symbols
tensorflow_hub/feature_column_v2_test.py13 symbols

For agents

$ claude mcp add hub \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact