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

Method size

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

Get total size of current Tensor. @return size of current Tensor.

()

Source from the content-addressed store, hash-verified

185 * @return size of current Tensor.
186 */
187 public long size() {
188 long product = 1L;
189 long[] shapeArr = shape();
190 for (int i = 0; i < shapeArr.length; ++i) {
191 product *= shapeArr[i];
192 }
193 return product;
194 }
195
196 /**
197 * Return a copied flat java array of current array (row-major).

Callers 3

checkCopySizeMethod · 0.95
internalMethod · 0.95
shapeMethod · 0.45

Calls 1

shapeMethod · 0.95

Tested by

no test coverage detected