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

Method exist

jvm/core/src/main/java/org/apache/tvm/Device.java:173–180  ·  view source on GitHub ↗

Whether this device exists. @return true if exists.

()

Source from the content-addressed store, hash-verified

171 * @return true if exists.
172 */
173 public boolean exist() {
174 TVMValue ret = APIInternal.get("runtime.GetDeviceAttr")
175 .pushArg(deviceType)
176 .pushArg(deviceId)
177 .pushArg(0)
178 .invoke();
179 return ((TVMValueLong) ret).value != 0;
180 }
181
182 /**
183 * Maximum number of threads on each block.

Callers 1

Calls 3

getMethod · 0.95
pushArgMethod · 0.80
invokeMethod · 0.65

Tested by 1