gpt4 book ai didi

tensorflow - 如何命名要在 Tensorflow Serving 中使用的 Tensorflow 模型?

转载 作者:行者123 更新时间:2023-12-05 08:56:00 30 4
gpt4 key购买 nike

当执行 tensorflow_model_server 二进制文件时,它需要一个模型名称命令行参数,model_name

如何在训练期间指定模型名称,以便在运行 tensorflow_model_server 时指定它?

示例:bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port=9000 --model_name=model --model_base_path=../models/model/version/

最佳答案

如果我错了请纠正我,但看起来您实际上可以使用命令行参数 model_name 为您的模型命名,并且它不必与 tensorflow 图中的任何内容匹配。

来自源代码: https://github.com/tensorflow/serving/blob/master/tensorflow_serving/model_servers/main.cc#L41指定模型名称(默认为“default”):--model_name=my_name

关于tensorflow - 如何命名要在 Tensorflow Serving 中使用的 Tensorflow 模型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43192944/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com