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

Method checkCall

jvm/core/src/main/java/org/apache/tvm/Base.java:141–145  ·  view source on GitHub ↗

Check the return value of C API call. This function will raise exception when error occurs. Wrap every API call with this function @param ret return value from API calls

(int ret)

Source from the content-addressed store, hash-verified

139 * @param ret return value from API calls
140 */
141 public static void checkCall(int ret) throws TVMError {
142 if (ret != 0) {
143 throw new TVMError(_LIB.tvmFFIGetLastError());
144 }
145 }
146
147 /**
148 * TVM Runtime error.

Callers 14

releaseMethod · 0.95
syncMethod · 0.95
copyFromMethod · 0.95
copyFromRawMethod · 0.95
shapeMethod · 0.95
internalMethod · 0.95
emptyMethod · 0.95
listGlobalFuncNamesMethod · 0.95
getGlobalFuncMethod · 0.95
invokeMethod · 0.95
registerMethod · 0.95
convertFuncMethod · 0.95

Calls 1

tvmFFIGetLastErrorMethod · 0.80

Tested by

no test coverage detected