【问题标题】:mxnet multicore on LInux in RR 中 LLinux 上的 mxnet 多核
【发布时间】:2017-11-07 14:15:32
【问题描述】:

Follwoing 在 Windows 上运行良好,但在 Linux 上抛出错误

core <- 5
ctx <- lapply(c(1:core), function(i) {mx.cpu(i)})

模型函数为“mx.model.FeedForward.create”

The error is "Error in (function (symbol, ctx, grad.req = "null", ...) : Need more shape information to decide the shapes of arguments"

虽然,当核心

【问题讨论】:

    标签: r deep-learning mxnet


    【解决方案1】:

    这是解决方案。

    先设置环境变量

    Sys.setenv(MXNET_CPU_WORKER_NTHREADS = core);

    根据 cpu/gpu 使用 ctx= mx.cpu()

    它可以在 Windows 和 Linux 上运行

    【讨论】:

      猜你喜欢
      • 2023-03-24
      • 1970-01-01
      • 2018-08-16
      • 1970-01-01
      • 2020-01-14
      • 2017-09-05
      • 1970-01-01
      • 1970-01-01
      • 2013-01-19
      相关资源
      最近更新 更多