MCPcopy Create free account
hub / github.com/apache/tvm-ffi / UpdateBacktrace

Method UpdateBacktrace

include/tvm/ffi/error.h:269–272  ·  view source on GitHub ↗

! * \brief Update the backtrace of the error object. * \param backtrace_str The backtrace to update. * \param update_mode The mode to update the backtrace, * can be either kTVMFFIBacktraceUpdateModeReplace, kTVMFFIBacktraceUpdateModeAppend. */

Source from the content-addressed store, hash-verified

267 * can be either kTVMFFIBacktraceUpdateModeReplace, kTVMFFIBacktraceUpdateModeAppend.
268 */
269 void UpdateBacktrace(const TVMFFIByteArray* backtrace_str, int32_t update_mode) {
270 ErrorObj* obj = static_cast<ErrorObj*>(data_.get());
271 obj->update_backtrace(obj, backtrace_str, update_mode);
272 }
273
274 /*!
275 * \brief Get the full message of the error, including kind, message and traceback.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected