מרכז של TensorFlow
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
TensorFlow Hub הוא מאגר פתוח וספרייה ללמידת מכונה לשימוש חוזר. מאגר tfhub.dev מספק מודלים רבים שהוכשרו מראש: הטמעות טקסט, מודלים של סיווג תמונות, מודלים של 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)
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# TensorFlow Hub\n\n\u003cbr /\u003e\n\nTensorFlow Hub is an open repository and library for reusable machine learning.\nThe [tfhub.dev](https://tfhub.dev) repository provides many pre-trained models:\ntext embeddings, image classification models, TF.js/TFLite models and much more.\nThe repository is open to\n[community contributors](https://tfhub.dev/s?subtype=publisher).\n\nThe [`tensorflow_hub`](https://github.com/tensorflow/hub) library lets you\ndownload and reuse them in your TensorFlow program with a minimum amount of\ncode. \n\n import tensorflow_hub as hub\n\n model = hub.KerasLayer(\"https://tfhub.dev/google/nnlm-en-dim128/2\")\n embeddings = model([\"The rain in Spain.\", \"falls\",\n \"mainly\", \"In the plain!\"])\n\n print(embeddings.shape) #(4,128)\n\nNext Steps\n----------\n\n- [Find models on tfhub.dev](https://tfhub.dev)\n- [Publish models on tfhub.dev](/hub/publish)\n- TensorFlow Hub library\n - [Install TensorFlow Hub](/hub/installation)\n - [Library overview](/hub/lib_overview)\n- [Follow tutorials](/hub/tutorials)"]]