V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
luolianhai
V2EX  ›  问与答

deeplearning4j 编译出错

  •  
  •   luolianhai · 2015-07-14 22:31:52 +08:00 · 2109 次点击
    这是一个创建于 3444 天前的主题,其中的信息可能已经有所发展或是发生改变。

    错误如下:
    [ERROR] /home/luolianhai/deeplearning4j/deeplearning4j-scaleout/spark/dl4j-spark-ml/src/main/scala/org/deeplearning4j/spark/ml/nn/TrainingStrategy.scala:79: overloaded method value zeros with alternatives:
    (x$1: [Int])org.nd4j.linalg.api.ndarray.INDArray
    (x$1: Int)org.nd4j.linalg.api.ndarray.INDArray
    cannot be applied to (Array[Int])
    [ERROR] val accumulatedParams = sc.accumulator(Nd4j.zeros(networkParams.shape()))(INDArrayAccumulatorParam)
    [ERROR] ^
    [ERROR] /home/luolianhai/deeplearning4j/deeplearning4j-scaleout/spark/dl4j-spark-ml/src/main/scala/org/deeplearning4j/spark/ml/nn/TrainingStrategy.scala:103: overloaded method value zeros with alternatives:
    (x$1: [Int])org.nd4j.linalg.api.ndarray.INDArray
    (x$1: Int)org.nd4j.linalg.api.ndarray.INDArray
    cannot be applied to (Array[Int])
    [ERROR] def zero(initialValue: INDArray): INDArray = Nd4j.zeros(initialValue.shape())
    [ERROR] ^
    [ERROR] two errors found
    [INFO] ---------------------------------

    ​TrainingStrategy.scala的第79和103行如下:
    val accumulatedParams = sc.accumulator(Nd4j.zeros(networkParams.shape()))(INDArrayAccumulatorParam)
    def zero(initialValue: INDArray): INDArray = Nd4j.zeros(initialValue.shape())

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5331 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 06:58 · PVG 14:58 · LAX 22:58 · JFK 01:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.