TensorFlow Hub 是一个经过训练的机器学习模型存储库。
!pip install --upgrade tensorflow_hub 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)
Google I/O 上的 TensorFlow Hub 对现实世界的影响
了解如何使用 TensorFlow Hub 构建具有现实世界影响力的 ML 解决方案。
设备上 ML 解决方案
要探索包括 TensorFlow Hub 在内的移动和网络应用的 ML 解决方案,请访问 Google 设备上机器学习页面。
使用 TensorFlow Hub 的预处理模型简化 BERT
TensorFlow Hub 使用新的预处理模型使 BERT 易于使用。
从歌唱到乐谱:使用 SPICE 和 Tensorflow Hub 估算音高
了解如何使用 SPICE 模型从现场音频自动转录乐谱。
社区
加入 TensorFlow Hub 社区