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

Method empty

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

Create an empty array given shape, type and device. @param shape The shape of the array. @param dtype The data type of the array. @param dev The device of the array. @return The array tvm supported.

(long[] shape, TVMType dtype, Device dev)

Source from the content-addressed store, hash-verified

360 * @return The array tvm supported.
361 */
362 public static Tensor empty(long[] shape, TVMType dtype, Device dev) {
363 Base.RefLong refHandle = new Base.RefLong();
364 Base.checkCall(Base._LIB.tvmTensorEmpty(
365 shape, dtype.typeCode, dtype.bits, dtype.lanes, dev.deviceType, dev.deviceId, refHandle));
366 return new Tensor(refHandle.value, false, dtype, dev);
367 }
368
369 /**
370 * Create an empty array on cpu given shape and type.

Callers 12

invokeMethod · 0.95
test_sum_tensorMethod · 0.95
test_from_float32Method · 0.95
test_from_float64Method · 0.95
test_from_int8Method · 0.95
test_from_int16Method · 0.95
test_from_int32Method · 0.95
test_from_int64Method · 0.95
test_from_uint16Method · 0.95
internalMethod · 0.95

Calls 3

checkCallMethod · 0.95
cpuMethod · 0.95
tvmTensorEmptyMethod · 0.80

Tested by 11

invokeMethod · 0.76
test_sum_tensorMethod · 0.76
test_from_float32Method · 0.76
test_from_float64Method · 0.76
test_from_int8Method · 0.76
test_from_int16Method · 0.76
test_from_int32Method · 0.76
test_from_int64Method · 0.76
test_from_uint16Method · 0.76