ND4S build fixed (#47)

Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
master
Alexander Stoyakin 2019-07-05 17:24:11 +03:00 committed by AlexDBlack
parent 15e7984392
commit 9f401dc020
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -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 =