我正在尝试运行 MobileNet_v1
在 ImageNet
为此,我正在使用 official Tensorflow Model repository并遵循他们的指南。
但是,当我实际尝试为 MobileNet_v1
进行培训时首先启动:
models/research/slim$ bazel build -c opt --config=cuda mobilenet_v1_{eval,train}
我有 :
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=146
ERROR: Config value cuda is not defined in any .rc file
之前的所有步骤都成功了,除了这一步之外,一切似乎都很好。
我正在使用 :
Ubuntu 16.04
TF version: v1.7.0 (and 1.10.1)
Cuda v9.0
cuDNN v7.0 (and 7.1.3)
bazel release 0.16.1
最佳答案
--[no]allow_undefined_configs no longer exists, passing undefined configs is an error.
从 0.16.0 及以上版本开始。
现在使用旧版本的 bazel 应该可以解决您的问题。
关于tensorflow - 尝试在 tensorflow 中训练 mobilenet 时出现 ERROR : Config value cuda is not defined in any . rc 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52041661/