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

Method checkCopySize

jvm/core/src/main/java/org/apache/tvm/Tensor.java:153–159  ·  view source on GitHub ↗
(int sourceLength)

Source from the content-addressed store, hash-verified

151 }
152
153 private void checkCopySize(int sourceLength) {
154 long arrSize = size();
155 if (arrSize != sourceLength) {
156 throw new IllegalArgumentException(
157 String.format("Array shape size not match: %d v.s. %d", sourceLength, size()));
158 }
159 }
160
161 /**
162 * Copy from a raw byte array.

Callers 1

copyFromMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected