首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Bazel运行"gans/experiments/emnist:run_experiments“时出错:仅在工作区内支持”run“命令

使用Bazel运行"gans/experiments/emnist:run_experiments“时出错:仅在工作区内支持”run“命令
EN

Stack Overflow用户
提问于 2020-08-01 12:39:16
回答 1查看 96关注 0票数 0

我运行"bazel run tensorflow_federated/python/research/gans/experiments/emnist:run_experiments",the me error“失败:”'run‘命令只在一个工作区内被支持(在有一个工作区文件的目录下)。“

Error Information

在我的“联合”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

EN

回答 1

Stack Overflow用户

发布于 2020-09-29 04:56:04

只是为了检查一下,您是否遵循了the previous step describing how to download and cd into the tensorflow/federated project directory?当运行提供的bazel命令时,似乎确实有必要位于该目录中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63201833

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档