Function tvm::ffi::EnvErrorAlreadySet

Function tvm::ffi::EnvErrorAlreadySet#

Function Documentation#

inline Error tvm::ffi::EnvErrorAlreadySet()#

Error object for EnvErrorAlreadySet.

This error can be thrown by EnvCheckSignals to indicate that there is an error set in the frontend environment(e.g. python interpreter).

void ExampleLongRunningFunction() {
  if (TVMFFIEnvCheckSignals() != 0) {
    throw ::tvm::ffi::EnvErrorAlreadySet();
  }
  // do work here
}