<!--* freshness: { owner: 'kempy' reviewed: '2020-09-14' } *-->

# TensorFlow Hub

TensorFlow Hub is an open repository and library for reusable machine learning.
The [tfhub.dev](https://tfhub.dev) repository provides many pre-trained models:
text embeddings, image classification models, TF.js/TFLite models and much more.
The repository is open to
[community contributors](https://tfhub.dev/s?subtype=publisher).

The [`tensorflow_hub`](https://github.com/tensorflow/hub) library lets you
download and reuse them in your TensorFlow program with a minimum amount of
code.

```python
import tensorflow_hub as hub

model = hub.KerasLayer("https://tfhub.dev/google/nnlm-en-dim128/2")
embeddings = model(["The rain in Spain.", "falls",
                    "mainly", "In the plain!"])

print(embeddings.shape)  #(4,128)
```

## Next Steps

-   [Find models on tfhub.dev](https://tfhub.dev)
-   [Publish models on tfhub.dev](publish.md)
-   TensorFlow Hub library
    -   [Install TensorFlow Hub](installation.md)
    -   [Library overview](lib_overview.md)
-   [Follow tutorials](tutorials/README.md)

<!--* freshness: { owner: 'kempy' reviewed: '2020-09-14' } *-->

# TensorFlow Hub

TensorFlow Hub is an open repository and library for reusable machine learning.
The [tfhub.dev](https://tfhub.dev) repository provides many pre-trained models:
text embeddings, image classification models, TF.js/TFLite models and much more.
The repository is open to
[community contributors](https://tfhub.dev/s?subtype=publisher).

The [`tensorflow_hub`](https://github.com/tensorflow/hub) library lets you
download and reuse them in your TensorFlow program with a minimum amount of
code.

```python
import tensorflow_hub as hub

model = hub.KerasLayer("https://tfhub.dev/google/nnlm-en-dim128/2")
embeddings = model(["The rain in Spain.", "falls",
                    "mainly", "In the plain!"])

print(embeddings.shape)  #(4,128)
```

## Next Steps

-   [Find models on tfhub.dev](https://tfhub.dev)
-   [Publish models on tfhub.dev](publish.md)
-   TensorFlow Hub library
    -   [Install TensorFlow Hub](installation.md)
    -   [Library overview](lib_overview.md)
-   [Follow tutorials](tutorials)

Fix broken link to README so it renders properly on both GitHub and tf.org
Fix broken link to README so it renders properly on both GitHub and tf.org

PiperOrigin-RevId: 358545363
