-1

我按照https://tensorflow.github.io/serving/serving_basic中的说明在 Windows 机器上运行的 docker 机器中设置了 TensorFlow 服务器。我成功地构建并运行了 mnist_model。但是,当我尝试通过运行以下命令“bazel build //tensorflow_serving/example:wide_n_deep_tutorial.py”为 wide_n_deep_tutorial 示例构建模型时,模型没有成功构建,因为 bazel-bin 文件夹中没有生成文件。

在此处输入图像描述

由于在构建模型时没有显示错误消息,我无法找出问题所在。如果有人可以帮助我调试和解决问题,我将不胜感激。

4

2 回答 2

0

通过在 BUILD 文件中添加广泛和深度模型的目标可以解决问题。

在 BUILD 文件中添加了以下内容:

py_binary(
    name = "wide_n_deep_model",
    srcs = [
        "wide_n_deep_model.py",
    ],
    deps = [
        "//tensorflow_serving/apis:predict_proto_py_pb2",
        "//tensorflow_serving/apis:prediction_service_proto_py_pb2",
        "@org_tensorflow//tensorflow:tensorflow_py",
    ],
)
于 2016-11-17T20:43:24.603 回答
0

您只是在这里猜测命令行,因为在为 wide_n_deep_tutorial.py 服务的 tensorflow 的 BUILD 文件中没有目标

到目前为止,您只能构建 mnist 和 inception 目标。

于 2016-10-24T21:08:33.627 回答