TensorFlow हब पुन: प्रयोज्य मशीन सीखने के लिए एक खुला भंडार और पुस्तकालय है। tfhub.dev भंडार कई पूर्व प्रशिक्षित मॉडलों प्रदान करता है: पाठ embeddings, छवि वर्गीकरण मॉडल, TF.js / TFLite मॉडल और भी बहुत कुछ। भंडार के लिए खुला है समुदाय योगदानकर्ताओं ।
tensorflow_hub
पुस्तकालय डाउनलोड करने और कोड की एक न्यूनतम राशि के साथ अपने TensorFlow कार्यक्रम में उन्हें पुन: उपयोग करने देता है।
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)