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

Commit

Permalink
add a toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Oct 23, 2018
1 parent 232fd96 commit ebc14c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@ class NDArray private[mxnet](private[mxnet] val handle: NDArrayHandle,
checkCall(_LIB.mxNDArraySyncCopyFromCPU(handle, source, source.length))
}

override def toString() : String = {
s"${this.visualize}<NDArray ${this.shape} ${this.context}>"
}

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

0 comments on commit ebc14c4

Please sign in to comment.