【问题标题】:Error while using GPU based remote execution with Tensorflow federated使用基于 GPU 的远程执行与 Tensorflow 联合时出错
【发布时间】:2020-07-10 05:31:20
【问题描述】:

我正在尝试使用此链接上提供的示例来试验远程执行器运行时。 https://github.com/tensorflow/federated/blob/master/tensorflow_federated/python/examples/remote_executor_example.py

如果我使用基于 CPU 的 tensorflow,那么一切正常。然而,对于基于 GPU 的张量流 发生以下错误并中止执行:

2020-03-29 16:27:22.904103: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-03-29 16:27:22.904807: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1241] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 978 MB memory) -> physical GPU (device: 0, name: GRID V100DX-32C, pci bus id: 0000:02:00.0, compute capability: 7.0)
2020-03-29 16:27:22.995000: W tensorflow/core/common_runtime/base_collective_executor.cc:217] BaseCollectiveExecutor::StartAbort Internal: No unary variant device copy function found for direction: 1 and Variant type_index: tensorflow::data::(anonymous namespace)::DatasetVariantWrapper
[[{{node partitionedcall_args_0/_2}}]]

我该如何解决这个问题?有没有人遇到过类似的问题?

【问题讨论】:

标签: python tensorflow-federated


【解决方案1】:

截至this commit,此问题应在 TFF 中在 master 中修复。您可以采取的缓解措施包括:

  1. 使用 Bazel 从 master 构建 TFF,如 here 所述。
  2. 等待下一个 pip 包发布,计划在下周发布。
  3. 在远程工作人员上手动编辑站点包,以明确地将数据集实例固定在 CPU 上,如链接更改中所示。

【讨论】:

    猜你喜欢
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    • 2021-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-21
    • 2020-12-07
    相关资源
    最近更新 更多