Return a copied internal byte array of current array (row-major). @return A copy of array content.
()
| 319 | * @return A copy of array content. |
| 320 | */ |
| 321 | public byte[] internal() { |
| 322 | Tensor tmp = Tensor.empty(shape(), dtype); |
| 323 | copyTo(tmp); |
| 324 | |
| 325 | int arrLength = dtype.numOfBytes * (int) size(); |
| 326 | byte[] arr = new byte[arrLength]; |
| 327 | Base.checkCall(Base._LIB.tvmFFIDLTensorCopyToJArray(this.dltensorHandle, arr)); |
| 328 | return arr; |
| 329 | } |
| 330 | |
| 331 | private byte[][] groupInternalBytes() { |
| 332 | byte[] raw = internal(); |