TF Hub 模块的通用签名
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
简介
TensorFlow Hub 托管了适用于各种任务的模型。建议为同一任务的模型实现一个通用 API,以便模型使用者能够轻松地换用不同模型,而无需修改使用这些模型的代码,即使模型来自不同的发布者也是如此。
目的是让使用者能够针对同一任务轻松换用不同的模型,就像切换采用字符串值的超参数一样简单。这样,模型使用者可以轻松找到最能解决其问题的模型。
此目录下收录了采用 TF1 Hub 格式的模块的通用签名规范。
请注意,TF1 Hub 格式现已弃用,取代它的是 TF2 SavedModel 格式及其通用 SavedModel API。
签名
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2021-09-01。
[null,null,["最后更新时间 (UTC):2021-09-01。"],[],[],null,["# Common Signatures for TF Hub Modules\n\n\u003cbr /\u003e\n\nIntroduction\n------------\n\n[TensorFlow Hub](https://tfhub.dev) hosts models for a variety of tasks. Models\nfor the same task are encouraged to implement a common API so that model\nconsumers can easily exchange them without modifying the code that uses them,\neven if they come from different publishers.\n\nThe goal is to make exchanging different models for the same task as simple as\nswitching a string-valued hyperparameter. With that, model consumers can easily\nfind the best one for their problem.\n\nThis directory collects specifications of common signatures for modules in the\n[TF1 Hub format](../tf1_hub_module).\n\nNote that the TF1 Hub format has been **deprecated** in favor of the\n[TF2 SavedModel format](../tf2_saved_model) and its\n[Common SavedModel APIs](../common_saved_model_apis/index).\n\nSignatures\n----------\n\n- [Image Signatures](/hub/common_signatures/images)\n- [Text Signatures](/hub/common_signatures/text)"]]