【发布时间】:2017-10-02 16:09:00
【问题描述】:
是否可以保存在终端中运行的 bazel 构建命令的输出?命令是:
bazel build tensorflow/examples/image_retraining:label_image &&
bazel-bin/tensorflow/examples/image_retraining/label_image
--graph=/tmp/output_graph.pb
--labels=/tmp/output_labels.txt
--output_layer=final_result:0
--image=$HOME/Desktop/Image-3/image1.png
我想将输出保存到 .txt 文件;我不能简单地将 > out.txt 标记到行尾,否则会出错。但是有 bazel-output 命令吗?
【问题讨论】:
-
提示:可以使用
bazel run :binary -- --arg1=foo, --arg2=bar
标签: tensorflow terminal bazel