我运行"bazel run tensorflow_federated/python/research/gans/experiments/emnist:run_experiments",the me error“失败:”'run‘命令只在一个工作区内被支持(在有一个工作区文件的目录下)。“
在我的“联合”git库中有一个工作空间空文件,我运行了"touch WORKSPACE“。My git repo folder
我的安装测试是通过运行"python -c "import tensorflow_federated as tff;print(tff.federated_computation(tff.federated_computation:'Hello World')())“成功的。
我也可以运行"bazel run tensorflow_federated/python/research/gans/experiments/emnist:train".
下面是我的配置:
Python 3.6.9
Tensorflow 2.2.0
Tensorflow-联合0.16.1
Bazel 3.4.1
我通过以下链接使用Bazel从源代码构建TensorFlow联合python包:https://github.com/tensorflow/federated/blob/master/docs/install.md#build-the-tensorflow-federated-python-package-from-source
发布于 2020-09-29 04:56:04
只是为了检查一下,您是否遵循了the previous step describing how to download and cd into the tensorflow/federated project directory?当运行提供的bazel命令时,似乎确实有必要位于该目录中。
https://stackoverflow.com/questions/63201833
复制相似问题