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

Commit

Permalink
remove debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Jun 30, 2019
1 parent 8ae0c9f commit 3f92242
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,26 @@ class SparseNDArray private[mxnet] (override private[mxnet] val handle: NDArrayH
}

override def slice(start: Int, end: Int): NDArray = {
printf(s"\n\nSlice being called!!\n\nstart:$start end:$end")
NDArray.api.slice(this, Shape(start), Shape(end))
}

/**
* Get the Data portion from the row Sparse NDArray
* Get the Data portion from a Row Sparse NDArray
* @return NDArray
*/
def getData: NDArray = {
require(this.sparseFormat == SparseFormat.ROW_SPARSE, "Not Supported for CSR")
val handle = new NDArrayHandleRef
if (this.sparseFormat == SparseFormat.CSR) {
throw new UnsupportedOperationException("Not Supported for CSR")
}
_LIB.mxNDArrayGetDataNDArray(this.handle, handle)
new NDArray(handle.value, false)
}

/**
* Get the indptr Array
* Get the indptr Array from a CSR NDArray
* @return NDArray
*/
def getIndptr: NDArray = {
if (this.sparseFormat == SparseFormat.ROW_SPARSE) {
throw new UnsupportedOperationException("Not Supported for row sparse")
}
require(this.sparseFormat == SparseFormat.CSR, "Not Supported for row sparse")
getAuxNDArray(0)
}

Expand Down

0 comments on commit 3f92242

Please sign in to comment.