22# TensorFlow Hub
33
44TensorFlow Hub is an open repository and library for reusable machine learning.
5- The [ tfhub.dev ] ( https://tfhub.dev ) repository provides many pre-trained models:
5+ [ Kaggle Models ] ( https://www.kaggle.com/models ) provides many pre-trained models:
66text embeddings, image classification models, TF.js/TFLite models and much more.
77The repository is open to
8- [ community contributors] ( https://tfhub.dev/s?subtype=publisher ) .
8+ [ community contributors] ( https://www.kaggle.com/models?owner-type=user ) .
99
1010The [ ` tensorflow_hub ` ] ( https://github.com/tensorflow/hub ) library lets you
1111download and reuse them in your TensorFlow program with a minimum amount of
1414``` python
1515import tensorflow_hub as hub
1616
17- model = hub.KerasLayer(" https://tfhub.dev/ google/nnlm- en-dim128/2" )
17+ model = hub.KerasLayer(" https://www.kaggle.com/models/ google/nnlm/TensorFlow2/ en-dim128/2" )
1818embeddings = model([" The rain in Spain." , " falls" ,
1919 " mainly" , " In the plain!" ])
2020
@@ -23,8 +23,8 @@ print(embeddings.shape) #(4,128)
2323
2424## Next Steps
2525
26- - [ Find models on tfhub.dev ] ( https://tfhub.dev )
27- - [ Publish models on tfhub.dev ] ( publish.md )
26+ - [ Find models on kaggle.com ] ( https://www.kaggle.com/models )
27+ - [ Publish models on kaggle.com ] ( publish.md )
2828- TensorFlow Hub library
2929 - [ Install TensorFlow Hub] ( installation.md )
3030 - [ Library overview] ( lib_overview.md )
0 commit comments