Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: minmingzhu <[email protected]>
  • Loading branch information
minmingzhu committed Aug 9, 2023
1 parent fd0cd1d commit c199710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mllib-dal/src/main/scala/com/intel/oap/mllib/OneDAL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ object OneDAL {
val numCols = list(0).getAs[Vector](1).toArray.size

val labelsArray = new Array[Double](numRows)
val featuresAddress= OneDAL.cNewFloatArray(numRows.toLong * numCols)
val featuresAddress= OneDAL.cNewDoubleArray(numRows.toLong * numCols)
for ( i <- 0 until numberCores) {
val f = Future {
val iter = list.iterator
Expand Down Expand Up @@ -626,7 +626,7 @@ object OneDAL {
val numRows = list.size
val numCols = list(0).toArray.size
val size = numRows.toLong * numCols.toLong
val targetArrayAddress = OneDAL.cNewFloatArray(size)
val targetArrayAddress = OneDAL.cNewDoubleArray(size)
for ( i <- 0 until numberCores) {
val f = Future {
val iter = list.iterator
Expand Down

0 comments on commit c199710

Please sign in to comment.