From 9f401dc020d32693485b68e7028a9df5c8aee523 Mon Sep 17 00:00:00 2001 From: Alexander Stoyakin Date: Fri, 5 Jul 2019 17:24:11 +0300 Subject: [PATCH] ND4S build fixed (#47) Signed-off-by: Alexander Stoyakin --- nd4s/src/main/scala/org/nd4s/Implicits.scala | 6 +++--- nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nd4s/src/main/scala/org/nd4s/Implicits.scala b/nd4s/src/main/scala/org/nd4s/Implicits.scala index 76e75b95d..204b4bbc1 100644 --- a/nd4s/src/main/scala/org/nd4s/Implicits.scala +++ b/nd4s/src/main/scala/org/nd4s/Implicits.scala @@ -48,7 +48,7 @@ object Implicits { Nd4j.create(underlying, shape, ord.value, offset) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying, shape.toArray) + Nd4j.create(underlying, shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying) } @@ -64,7 +64,7 @@ object Implicits { Nd4j.create(underlying, shape, offset, ord.value) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying, shape.toArray) + Nd4j.create(underlying, shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying) } @@ -80,7 +80,7 @@ object Implicits { Nd4j.create(underlying.map(_.toFloat), shape, ord.value, offset) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying.map(_.toFloat), shape.toArray) + Nd4j.create(underlying.map(_.toFloat), shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying.map(_.toFloat).toArray) } diff --git a/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala b/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala index 8ea927062..82a227e02 100644 --- a/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala +++ b/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala @@ -25,7 +25,7 @@ trait OperatableNDArray[A <: INDArray] { val underlying: A // to keep compatibility with Predef.any2stringadd syntax. - def +(that: String): String = underlying.toString + that + def +(that: String): String = underlying.toString() + that // --- INDArray operators def +(that: INDArray)(implicit ev: NDArrayEvidence[A, _]): A =