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

Method enabled

jvm/core/src/main/java/org/apache/tvm/Module.java:129–132  ·  view source on GitHub ↗

Whether module runtime is enabled for target, e.g., The following code checks if cuda is enabled. Module.enabled("cuda") @param target The target device type. @return Whether runtime is enabled.

(String target)

Source from the content-addressed store, hash-verified

127 * @return Whether runtime is enabled.
128 */
129 public static boolean enabled(String target) {
130 TVMValue ret = getApi("runtime.RuntimeEnabled").pushArg(target).invoke();
131 return ret.asLong() != 0;
132 }
133}

Callers 3

test_addoneMethod · 0.95
test_strcatMethod · 0.95
prepare_cpu_libFunction · 0.45

Calls 4

getApiMethod · 0.95
asLongMethod · 0.95
pushArgMethod · 0.80
invokeMethod · 0.65

Tested by 3

test_addoneMethod · 0.76
test_strcatMethod · 0.76
prepare_cpu_libFunction · 0.36