Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix the minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Jan 10, 2019
1 parent 3e96e35 commit af53455
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,12 @@ class NDArray private[mxnet](private[mxnet] val handle: NDArrayHandle,
checkCall(_LIB.mxNDArraySyncCopyFromCPU(handle, source, source.length))
}

private def syncCopyfrom(source: Array[Double]): Unit = {
require(source.length == size,
s"array size (${source.length}) do not match the size of NDArray ($size)")
checkCall(_LIB.mxFloat64NDArraySyncCopyFromCPU(handle, source, source.length))
}

/**
* Visualize the internal structure of NDArray
* @return String that show the structure
Expand Down

0 comments on commit af53455

Please sign in to comment.