MCPcopy Index your code
hub / github.com/apache/tvm / internal

Method internal

jvm/core/src/main/java/org/apache/tvm/Tensor.java:321–329  ·  view source on GitHub ↗

Return a copied internal byte array of current array (row-major). @return A copy of array content.

()

Source from the content-addressed store, hash-verified

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();

Callers 2

asByteArrayMethod · 0.95
groupInternalBytesMethod · 0.95

Calls 6

emptyMethod · 0.95
shapeMethod · 0.95
sizeMethod · 0.95
checkCallMethod · 0.95
copyToMethod · 0.80

Tested by

no test coverage detected