Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
minmingzhu committed Nov 1, 2024
1 parent 89479bd commit 88870e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mllib-dal/src/main/scala/com/intel/oap/mllib/OneDAL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ object OneDAL {
val numRows = list.size
val numCols = list(0).getAs[Vector](1).toArray.size

val labelsAddress = OneDAL.cNewDoubleArray(numRows.toLong)
val featuresAddress= OneDAL.cNewDoubleArray(numRows.toLong * numCols)
val labelsAddress = OneDAL.cNewFloatArray(numRows.toLong)
val featuresAddress= OneDAL.cNewFloatArray(numRows.toLong * numCols)
for ( i <- 0 until numberCores) {
val f = Future {
val iter = list.iterator
Expand All @@ -587,7 +587,7 @@ object OneDAL {
val result = Future.sequence(labeledPointsList)
Await.result(result, Duration.Inf)

Iterator(((featuresAddress, numRows.toLong, numCols.toLong), (labelsAddress, numRows.toLong, 1.toLong)))
Iterator(((featuresAddress, c.toLong, numCols.toLong), (labelsAddress, numRows.toLong, 1.toLong)))

}.setName("coalescedTables").cache()

Expand Down

0 comments on commit 88870e7

Please sign in to comment.