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)
| 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. |
no test coverage detected