Python 2.7 Tensorflow初始最终层bazel保留错误
在Tensorflow站点中跟踪; 我试图在Ubuntu+Python2.7环境中重新训练初始模型的最后一层 $bazel build/home/Incpt/tensorflow/tensorflow/examples/image_再培训:再培训 它给出了一个错误。 错误:不是有效的绝对模式(绝对目标模式必须以两个斜杠开始) 有没有解决这个问题的建议?示例提及尝试 $bazel build tensorflow/示例/图像再培训:再培训Python 2.7 Tensorflow初始最终层bazel保留错误,python-2.7,build,tensorflow,neural-network,bazel,Python 2.7,Build,Tensorflow,Neural Network,Bazel,在Tensorflow站点中跟踪; 我试图在Ubuntu+Python2.7环境中重新训练初始模型的最后一层 $bazel build/home/Incpt/tensorflow/tensorflow/examples/image_再培训:再培训 它给出了一个错误。 错误:不是有效的绝对模式(绝对目标模式必须以两个斜杠开始) 有没有解决这个问题的建议?示例提及尝试 $bazel build tensorflow/示例/图像再培训:再培训 仅总结一下TensorFlow构建问题调试(在Linux
仅总结一下TensorFlow构建问题调试(在Linux上)的一般情况,以防其他人在这里遇到类似问题:
- 确保您在签出的目录中。因此,如果
使您成为gitclone
目录,则应在该目录树中运行tensorflow
命令。如果构建目标是绝对的(bazel
),则在树中的何处并不重要//tensorflow/…
- 在
目录中运行tensorflow
。除了允许您配置构建之外,还可以获取必要的依赖项(如果您不想费心回答问题,只需要默认设置,您可以/configure
)yes”“|/configure
- 确保您安装了最新版本的和兼容的Java
- git存储库变化很大
将为您提供最新版本(git-pull
可以为您提供任何您想要的版本)git-checkout
- 确保您在签出的目录中。因此,如果
使您成为gitclone
目录,则应在该目录树中运行tensorflow
命令。如果构建目标是绝对的(bazel
),则在树中的何处并不重要//tensorflow/…
- 在
目录中运行tensorflow
。除了允许您配置构建之外,还可以获取必要的依赖项(如果您不想费心回答问题,只需要默认设置,您可以/configure
)yes”“|/configure
- 确保您安装了最新版本的和兼容的Java
- git存储库变化很大
将为您提供最新版本(git-pull
可以为您提供任何您想要的版本)git-checkout
cd/home/incpt/tensorflow/;bazel build//tensorflow/examples/image_retaining:retain
@AllenLavoie这就是答案,请推广;)谢谢你。@Allen Lavoie.但这给了我一个错误**root@test-虚拟机:/home/incept/models#bazel build//tensorflow/examples/image_retaining:retain**。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。错误:没有这样的包“tensorflow/examples/image_Retaining”:在包路径上找不到生成文件。信息:经过的时间:2.745s'@您所在的是/home/incpt/models
而不是/home/incpt/tensorflow/
@AllenLavoie,很抱歉出现了这个错误。它给出了以下错误;root@test-虚拟机:/home/incept/tensorflow#bazel build//tensorflow/examples/image_retaining:retain。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。错误:/home/incept/tensorflow/tensorflow/core/BUILD:1394:1:没有这样的目标“//tensorflow/tools/git:gen/spec.json”:目标“gen/spec.json”未在由/home/incept/tensorflow/tools/git/BUILD定义并由“//tensorflow/core:version\u info\u gen”引用的包“tensorflow/tools/git”中声明。cd/home/incept/tensorflow/;bazel build//tensorflow/examples/image_retaining:retain
@AllenLavoie这就是答案,请推广;)谢谢你。@Allen Lavoie.但这给了我一个错误**root@test-虚拟机:/home/incept/models#bazel build//tensorflow/examples/image_retaining:retain**。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。错误:没有这样的包“tensorflow/examples/image_Retaining”:在包路径上找不到生成文件。信息:经过的时间:2.745s'@您所在的是/home/incpt/models
而不是/home/incpt/tensorflow/
@AllenLavoie,很抱歉出现了这个错误。它给出了以下错误;root@test-虚拟机:/home/incept/tensorflow#bazel build//tensorflow/examples/image_retaining:retain。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。错误:/home/incept/tensorflow/tensorflow/core/BUILD:1394:1:没有这样的目标“//tensorflow/tools/git:gen/spec.json”:目标“gen/spec.json”未在由/home/incept/tensorflow/tensorflow/tools/git/BUILD定义并由“//tensorflow/core:version\u info\u gen”引用的包“tensorflow/tools/git”中声明。